createlane.html.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. /**
  3. * The createlane 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->kanban->createLane), set::titleClass('text-lg font-bold'));
  12. formPanel
  13. (
  14. on::change('[name=mode]', 'changeMode'),
  15. set::labelWidth('140px'),
  16. formRow
  17. (
  18. formGroup
  19. (
  20. set::label($lang->kanbanlane->name),
  21. set::name('name')
  22. )
  23. ),
  24. formRow
  25. (
  26. formGroup
  27. (
  28. set::label($lang->kanbanlane->column),
  29. radioList
  30. (
  31. set::name('mode'),
  32. set::items($lang->kanbanlane->modeList),
  33. set::inline(true),
  34. set::value('sameAsOther')
  35. )
  36. )
  37. ),
  38. formRow
  39. (
  40. setID('otherLaneBox'),
  41. formGroup
  42. (
  43. set::label($lang->kanbanlane->otherlane),
  44. picker
  45. (
  46. set::name('otherLane'),
  47. set::items($lanes),
  48. set::required(true)
  49. )
  50. )
  51. ),
  52. formRow
  53. (
  54. formGroup
  55. (
  56. set::label($lang->kanbanlane->color),
  57. checkColorGroup
  58. (
  59. set::name('color'),
  60. set::items(array_flip($config->kanban->laneColorList)),
  61. set::value('#3C4353')
  62. )
  63. )
  64. )
  65. );
  66. render();