kanban.html.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <?php
  2. /**
  3. * The execution view file of custom 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 Shujie Tian<tianshujie@easycorp.ltd>
  7. * @package custom
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. $expireDays = isset($config->kanban->reminder->expireDays) ? $config->kanban->reminder->expireDays : 1;
  12. $menuItems = array(
  13. li
  14. (
  15. setClass('menu-item'),
  16. a
  17. (
  18. set::href(createLink('custom', 'kanban', 'type=closedSetting')),
  19. $type == 'closedSetting' ? setClass('active') : null,
  20. $lang->custom->closeSetting
  21. )
  22. ),
  23. li
  24. (
  25. setClass('menu-item'),
  26. a
  27. (
  28. set::href(createLink('custom', 'kanban', 'type=expireReminder')),
  29. $type == 'expireReminder' ? setClass('active') : null,
  30. $lang->custom->kanbanExpireReminder
  31. )
  32. )
  33. );
  34. if($type == 'closedSetting')
  35. {
  36. $form[] = formGroup
  37. (
  38. set::width('2/3'),
  39. set::label($lang->custom->closedKanban),
  40. radioList
  41. (
  42. set::name('kanban'),
  43. set::items($lang->custom->CRKanban),
  44. set::value(isset($config->CRKanban) ? $config->CRKanban : 0),
  45. set::inline(true)
  46. )
  47. );
  48. $form[] = formGroup
  49. (
  50. set::label(''),
  51. span
  52. (
  53. icon('info text-warning mr-2'),
  54. $lang->custom->notice->readOnlyOfKanban
  55. )
  56. );
  57. }
  58. else
  59. {
  60. $form[] = formGroup
  61. (
  62. set::width('1/3'),
  63. set::label($lang->custom->kanbanExpireDays),
  64. inputGroup
  65. (
  66. control
  67. (
  68. set::name('expireDays'),
  69. set::type('number'),
  70. set::min(0),
  71. set::value($expireDays)
  72. ),
  73. $lang->custom->unitList['days']
  74. )
  75. );
  76. $form[] = formGroup
  77. (
  78. set::label(''),
  79. span
  80. (
  81. icon('info text-warning mr-2'),
  82. $lang->custom->notice->kanbanReminder
  83. )
  84. );
  85. }
  86. div
  87. (
  88. setClass('flex'),
  89. sidebar
  90. (
  91. div
  92. (
  93. setClass('cell p-2.5 bg-white'),
  94. menu
  95. (
  96. $menuItems
  97. )
  98. )
  99. ),
  100. formPanel
  101. (
  102. set::actions(array('submit')),
  103. set::labelWidth('120px'),
  104. setClass('flex-auto'),
  105. setClass('ml-4'),
  106. $form
  107. )
  108. );