batchcreate.html.php 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. /**
  3. * The batchCreate view file of researchtask 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 Hccheng Tang<tanghucheng@easycorp.ltd>
  7. * @package researchtask
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. include($this->app->getModuleRoot() . 'ai/ui/inputinject.html.php');
  12. $items = array();
  13. /* Field of id. */
  14. $items[] = array('name' => 'id', 'label' => $lang->idAB, 'control' => 'index', 'width' => '32px');
  15. /* Field of title. */
  16. $items[] = array('name' => 'name', 'label' => $lang->researchtask->name, 'width' => '240px', 'required' => true, 'control' => 'colorInput');
  17. /* Field of assignedTo. */
  18. $items[] = array('name' => 'assignedTo', 'label' => $lang->researchtask->assignedTo, 'control' => 'picker', 'items' => $members, 'ditto' => true, 'width' => '128px');
  19. /* Field of estimate. */
  20. $items[] = array
  21. (
  22. 'name' => 'estimate',
  23. 'label' => $lang->researchtask->estimateAB,
  24. 'width' => '100px',
  25. 'control' => array('type' => 'inputControl', 'suffix' => $lang->researchtask->suffixHour, 'suffixWidth' => 20 ),
  26. );
  27. /* Field of estStarted. */
  28. $items[] = array('name' => 'estStarted', 'label' => $lang->researchtask->estStarted, 'width' => '150px', 'control' => 'date', 'ditto' => true);
  29. /* Field of deadline. */
  30. $items[] = array('name' => 'deadline', 'label' => $lang->researchtask->deadline, 'width' => '150px', 'control' => 'date', 'ditto' => true);
  31. /* Field of desc. */
  32. $items[] = array('name' => 'desc', 'label' => $lang->researchtask->desc, 'control' => 'textarea', 'width' => '240px');
  33. /* Field of pri. */
  34. $items[] = array
  35. (
  36. 'name' => 'pri',
  37. 'label' => $lang->researchtask->pri,
  38. 'control' => 'priPicker',
  39. 'width' => '100px',
  40. 'value' => 3,
  41. 'items' => $lang->researchtask->priList,
  42. 'ditto' => true
  43. );
  44. /* Field of type. */
  45. $items[] = array('name' => 'type', 'hidden' => true, 'value' => 'research');
  46. /* Field of execution. */
  47. $items[] = array('name' => 'execution', 'hidden' => true, 'value' => $execution->id);
  48. /* Field of project. */
  49. $items[] = array('name' => 'project', 'hidden' => true, 'value' => $execution->project);
  50. /* Field of parent. */
  51. $items[] = array('name' => 'parent', 'hidden' => true, 'value' => $parent);
  52. formBatchPanel(set::title($title), set::pasteField('name'), set::headingActionsClass('flex-auto row-reverse'), set::items($items));
  53. /* ====== Render page ====== */
  54. render();