batchcreate.html.php 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * The batchCreate view file of activity 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 activity
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. $items = array();
  12. $items[] = array('name' => 'id', 'label' => $lang->idAB, 'width' => '32px', 'control' => 'index');
  13. $items[] = array('name' => 'process', 'label' => $lang->activity->process, 'width' => '120px', 'control' => array('control' => 'picker', 'required' => false), 'required' => true, 'items' => $processes, 'value' => $processID, 'ditto' => true, 'className' => 'hidden');
  14. $items[] = array('name' => 'name', 'label' => $lang->activity->name, 'width' => '240px', 'required' => true);
  15. $items[] = array('name' => 'optional', 'label' => $lang->activity->optional, 'width' => '120px', 'control' => array('control' => 'radioList', 'inline' => true), 'items' => array_filter($lang->activity->optionalList), 'value' => 'yes');
  16. $items[] = array('name' => 'tailorNorm', 'label' => $lang->activity->tailorNorm, 'width' => '200px');
  17. $items[] = array('name' => 'content', 'label' => $lang->activity->content, 'width' => '200px', 'control' => 'textarea');
  18. formBatchPanel
  19. (
  20. to::heading(div
  21. (
  22. setClass('panel-title text-lg'),
  23. $lang->activity->batchCreate,
  24. inputGroup
  25. (
  26. setClass('text-base font-medium'),
  27. span
  28. (
  29. setClass('input-group-addon form-label required'),
  30. $lang->activity->process
  31. ),
  32. picker
  33. (
  34. setClass('w-40'),
  35. set::name('processID'),
  36. set::items($processes),
  37. set::value($processID),
  38. setData(array('on' => 'change', 'call' => 'changeProcess'))
  39. )
  40. )
  41. )),
  42. on::change('[data-name="optional"]', 'setTailorNorm'),
  43. set::items($items)
  44. );