viewstep.html.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. /**
  3. * The stepview view file of deploy module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
  5. * @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  6. * @author Yang Li <liyang@easycorp.ltd>
  7. * @package deploy
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. detailHeader
  12. (
  13. isAjaxRequest('modal') ? to::prefix() : '',
  14. to::title
  15. (
  16. entityLabel(set(array('entityID' => $step->id, 'level' => 1, 'text' => $step->title))),
  17. $step->deleted == 1 ? label(setClass('danger-outline'), $lang->deleted) : null
  18. )
  19. );
  20. detailBody
  21. (
  22. setID('stepViewPage'),
  23. sectionList
  24. (
  25. section
  26. (
  27. setClass('flex-1 mr-4'),
  28. tableData
  29. (
  30. set::useTable(false),
  31. item
  32. (
  33. set::trClass('border-b pb-4'),
  34. set::name($lang->deploy->content),
  35. $step->content
  36. )
  37. )
  38. ),
  39. section
  40. (
  41. setClass('w-1/3'),
  42. set::title($lang->deploy->lblBasic),
  43. tableData
  44. (
  45. item
  46. (
  47. set::name($lang->deploy->assignedTo),
  48. $step->assignedTo ? zget($users, $step->assignedTo) . $lang->at . $step->assignedDate : ''
  49. ),
  50. item
  51. (
  52. set::name($lang->deploy->status),
  53. zget($lang->deploy->stepStatusList, $step->status)
  54. ),
  55. item
  56. (
  57. set::name($lang->deploy->createdBy),
  58. zget($users, $step->createdBy) . $lang->at . $step->createdDate
  59. ),
  60. item
  61. (
  62. set::name($lang->deploy->finishedBy),
  63. $step->finishedBy ? zget($users, $step->finishedBy) . $lang->at . $step->finishedDate : ''
  64. )
  65. )
  66. )
  67. ),
  68. history(set::objectType('deploystep'), set::objectID($step->id), set::commentUrl(createLink('action', 'comment', array('objectType' => 'deploystep', 'objectID' => $step->id)))),
  69. floatToolbar
  70. (
  71. set::object($step),
  72. to::prefix
  73. (
  74. btn
  75. (
  76. setData(array('load' => 'modal')),
  77. set::icon('icon-hand-right'),
  78. set::className('ghost text-white'),
  79. set::url(createLink('deploy', 'assignTo', "stepID=$step->id")),
  80. $lang->deploy->assignTo
  81. )
  82. )
  83. )
  84. );