editcard.html.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <?php
  2. /**
  3. * The editcard view file of kanban 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 Yuting Wang <wangyuting@easycorp.ltd>
  7. * @package kanban
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. modalHeader(set::title($lang->kanbancard->edit), set::entityText($card->name), set::entityID($card->id));
  12. formPanel
  13. (
  14. formRow
  15. (
  16. formGroup
  17. (
  18. set::label($lang->kanbancard->name),
  19. set::name('name'),
  20. set::value($card->name)
  21. ),
  22. formGroup
  23. (
  24. set::width('120px'),
  25. inputGroup
  26. (
  27. span
  28. (
  29. set('class', 'input-group-addon'),
  30. $lang->kanbancard->pri
  31. ),
  32. priPicker
  33. (
  34. set::name('pri'),
  35. set::items($lang->kanbancard->priList),
  36. set::value($card->pri)
  37. )
  38. )
  39. ),
  40. formGroup
  41. (
  42. set::width('120px'),
  43. inputGroup
  44. (
  45. span
  46. (
  47. set('class', 'input-group-addon'),
  48. $lang->kanbancard->estimate
  49. ),
  50. input(set::name('estimate'), set::placeholder($lang->kanbancard->lblHour), set::value($card->estimate))
  51. )
  52. ),
  53. formGroup
  54. (
  55. set::width('120px'),
  56. inputGroup
  57. (
  58. span
  59. (
  60. set('class', 'input-group-addon'),
  61. $lang->kanbancard->progress
  62. ),
  63. input(set::name('progress'), set::value($card->progress)),
  64. span(set('class', 'input-group-addon'), '%')
  65. )
  66. )
  67. ),
  68. formRow
  69. (
  70. formGroup
  71. (
  72. set::label($lang->kanbancard->assignedTo),
  73. picker
  74. (
  75. set::name('assignedTo'),
  76. set::items($kanbanUsers),
  77. set::value($card->assignedTo),
  78. set::multiple(true)
  79. )
  80. )
  81. ),
  82. formRow
  83. (
  84. formGroup
  85. (
  86. set::label($lang->kanbancard->beginAndEnd),
  87. inputGroup
  88. (
  89. datePicker(set::name('begin'), set::placeholder($lang->kanbancard->begin), set::value($card->begin)),
  90. span(set::className('input-group-addon'), '~'),
  91. datePicker(set::name('end'), set::placeholder($lang->kanbancard->end), set::value($card->end))
  92. )
  93. )
  94. ),
  95. formRow
  96. (
  97. formGroup
  98. (
  99. set::label($lang->kanbancard->desc),
  100. editor(set::name('desc'), html($card->desc))
  101. )
  102. )
  103. );
  104. render();