setkanban.html.php 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. /**
  3. * The setKanban view file of execution 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 Sun Guangming<sunguangming@easycorp.ltd>
  7. * @package execution
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. modalHeader(set::title($lang->execution->setKanban));
  12. formPanel(formRow
  13. (
  14. formGroup(set::label($lang->kanban->columnWidth), radioList
  15. (
  16. set::name('fluidBoard'),
  17. set::items(array('0' => $lang->kanbancolumn->fluidBoardList[0])),
  18. set::value($execution->fluidBoard),
  19. on::change('changeColWidth')
  20. ), div
  21. (
  22. set::className('flex items-center ml-8 py-1'),
  23. set::style(array('padding-left' => '1px')),
  24. span($lang->kanban->colWidth),
  25. input(set::type('number'), set::min($config->colWidth), set::name('colWidth'), set::className('w-16 size-sm mx-1'), set::value($execution->colWidth ? $execution->colWidth : $config->colWidth), $execution->fluidBoard == 0 ? '' : set::disabled(true)),
  26. span('px')
  27. ), div
  28. (
  29. set::className('flex items-center ml-4 py-2 tip'),
  30. $lang->kanbancolumn->autoTip
  31. ))
  32. ), formRow
  33. (
  34. set::style(array('margin-top' => '0px')),
  35. formGroup
  36. (
  37. set::label(''),
  38. radioList
  39. (
  40. set::name('fluidBoard'),
  41. set::items(array(1 => $lang->kanbancolumn->fluidBoardList[1])),
  42. set::value($execution->fluidBoard),
  43. on::change('changeColWidth')
  44. ),
  45. div
  46. (
  47. set::className('flex items-center ml-5 py-1'),
  48. span($lang->kanban->colWidth),
  49. input(set::type('number'), set::min($config->minColWidth), set::name('minColWidth'), set::className('w-16 size-sm mx-1'), set::value($execution->minColWidth ? $execution->minColWidth : $config->minColWidth), $execution->fluidBoard == 1 ? '' : set::disabled(true)),
  50. span('px'),
  51. span('~', set::className('mx-1')),
  52. input(set::type('number'), set::min($config->maxColWidth), set::name('maxColWidth'), set::className('w-16 size-sm mx-1'), set::value($execution->maxColWidth ? $execution->maxColWidth : $config->maxColWidth), $execution->fluidBoard == 1 ? '' : set::disabled(true)),
  53. span('px')
  54. )
  55. )
  56. ), $laneCount > 1 ? formRow
  57. (
  58. formGroup(set::label($lang->kanban->laneHeight), radioList
  59. (
  60. set::name('heightType'),
  61. set::items($lang->kanbanlane->heightTypeList),
  62. set::value($heightType),
  63. on::change('setCardCount')
  64. ))
  65. ) : null, $laneCount > 1 ? formRow
  66. (
  67. $displayCards <= 2 ? set::className('hidden') : null,
  68. set::id('cardBox'),
  69. formGroup(set::label($lang->kanban->cardCount), set::required(true), input(set::name('displayCards'), set::value($displayCards), set::placeholder($lang->kanbanlane->error->mustBeInt)))
  70. ) : null);