batchcreate.html.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * The select template view file of doc module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2026 禅道软件(青岛)有限公司(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 Yue Liu<liuyue@chandao.com>
  7. * @package gapanalysis
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. jsVar('roles', $rolePairs);
  12. jsVar('errorSameAccount', $lang->gapanalysis->errorSameAccount);
  13. /* ====== Define the page structure with zin widgets ====== */
  14. formBatchPanel(set::id('gapanalysisBatchCreateForm'), set::title($lang->gapanalysis->batchCreate), set::headingActionsClass('flex-auto row-reverse justify-between w-11/12'), formBatchItem
  15. (
  16. set::name('account'),
  17. set::label($lang->gapanalysis->account),
  18. set::control('picker'),
  19. set::items($members),
  20. set::width('240px')
  21. ), formBatchItem
  22. (
  23. set::name('role'),
  24. set::label($lang->gapanalysis->role),
  25. set::disabled(true),
  26. set::width('240px')
  27. ), formBatchItem
  28. (
  29. set::name('analysis'),
  30. set::label($lang->gapanalysis->analysis),
  31. set::control('textarea'),
  32. set::value('')
  33. ), formBatchItem
  34. (
  35. set::name('needTrain'),
  36. set::label($lang->gapanalysis->needTrain),
  37. set::control('picker'),
  38. set::items($lang->gapanalysis->needTrainList),
  39. set::ditto(true),
  40. set::value('no')
  41. ), on::change('[data-name="account"]', 'refreshRole'));
  42. /* ====== Render page ====== */
  43. render();