batchedit.html.php 1.6 KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * The batchEdit view file of activity module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2025 禅道软件(青岛)有限公司(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 Guangming Sun <sunguangming@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' => true), 'required' => true, 'items' => $processes);
  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. formBatchPanel
  18. (
  19. to::heading(div
  20. (
  21. setClass('panel-title text-lg'),
  22. $lang->activity->batchEdit
  23. )),
  24. on::change('[data-name="optional"]', 'setTailorNorm'),
  25. set::onRenderRow(jsRaw('window.renderActivityRow')),
  26. set::mode('edit'),
  27. set::items($items),
  28. set::data(array_values($activities))
  29. );