batchcreate.html.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * The batchCreate view file of issue module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2024 禅道软件(青岛)有限公司(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 Shujie Tian <tianshujie@easycorp.ltd>
  7. * @package issue
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. $items = array();
  12. /* Field of id. */
  13. $items[] = array('name' => 'id', 'label' => $lang->issue->id, 'control' => 'index', 'width' => '32px');
  14. foreach($config->issue->form->batchcreate as $fieldName => $fieldItem)
  15. {
  16. if($fieldName == 'execution')
  17. {
  18. $fieldItem['items'] = $executions;
  19. $fieldItem['value'] = isset($executionID) ? $executionID : '';
  20. if(empty($project->multiple)) $fieldItem['class'] = 'hidden';
  21. }
  22. if($fieldName == 'pri') $fieldItem['value'] = '3';
  23. if($fieldName == 'assignedTo') $fieldItem['items'] = $teamMembers;
  24. if($fieldName == 'owner')
  25. {
  26. $fieldItem['items'] = $teamMembers;
  27. $fieldItem['value'] = $app->user->account;
  28. }
  29. $items[] = $fieldItem;
  30. }
  31. formBatchPanel
  32. (
  33. set::title($lang->issue->batchCreate),
  34. set::items($items)
  35. );