deliverable.html.php 1.5 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * The deliverable view file of workflowgroup 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 Yuting Wang<wangyuting@chandao.com>
  7. * @package workflowgroup
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. jsVar('model', "{$workflowGroup->projectType}_{$workflowGroup->projectModel}");
  12. jsVar('deliverables', $deliverables);
  13. jsVar('sprintTips', $lang->workflowgroup->sprintTips);
  14. jsVar('requiredLabel', $lang->workflowgroup->required);
  15. $items = array();
  16. $items['key'] = array('name' => 'key', 'control' => 'hidden', 'hidden' => true);
  17. $items['object'] = array('name' => 'object', 'label' => $lang->workflowgroup->object, 'control' => 'static', 'width' => '120px');
  18. $items['whenClosed'] = array('name' => 'whenClosed', 'label' => $lang->workflowgroup->whenClosed, 'control' => 'hidden', 'width' => '120px', 'tip' => $lang->workflowgroup->whenCreatedTips);
  19. formBatchPanel
  20. (
  21. set::title($title),
  22. set::items($items),
  23. set::mode('edit'),
  24. set::onRenderRow(jsRaw('renderRowData')),
  25. set::data(array_values($deliverable)),
  26. set::minRows(1),
  27. on::click('[data-name^=deliverable]', 'getDeliverables')
  28. );
  29. query('.form-actions')->before(html("<div class='p-2'>{$lang->workflowgroup->deliverableTips}</div>"));