batchcreate.html.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * The batchCreate view file of process 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 process
  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' => 'name', 'label' => $lang->process->name, 'width' => '240px', 'required' => true);
  14. $items[] = array('name' => 'module', 'label' => $lang->process->module, 'width' => '200px', 'control' => 'picker', 'items' => $modules, 'value' => $moduleID, 'ditto' => true, 'className' => 'hidden');
  15. $items[] = array('name' => 'abbr', 'label' => $lang->process->abbr, 'width' => '200px');
  16. $items[] = array('name' => 'desc', 'label' => $lang->process->desc, 'width' => '200px', 'control' => 'textarea');
  17. formBatchPanel
  18. (
  19. to::heading(div
  20. (
  21. setClass('panel-title text-lg'),
  22. $lang->process->batchCreate,
  23. inputGroup
  24. (
  25. setClass('text-base font-medium'),
  26. span
  27. (
  28. setClass('input-group-addon form-label required'),
  29. $lang->process->module
  30. ),
  31. picker
  32. (
  33. setClass('w-40'),
  34. set::name('moduleID'),
  35. set::items($modules),
  36. set::value($moduleID),
  37. setData(array('on' => 'change', 'call' => 'changeModule'))
  38. )
  39. )
  40. )),
  41. set::items($items)
  42. );