importbuild.html.php 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. /**
  3. * The importbuild view file of kanban 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 kanban
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. jsVar('kanbanID', $kanbanID);
  12. jsVar('regionID', $regionID);
  13. jsVar('groupID', $groupID);
  14. jsVar('columnID', $columnID);
  15. jsVar('methodName', $this->app->rawMethod);
  16. featureBar
  17. (
  18. inputGroup
  19. (
  20. span(set::className('input-group-addon'), $lang->kanban->selectedProject),
  21. picker(set::name('project'), set::items($projects), set::value($selectedProjectID), set::style(array('width' => '200px')), set('data-on', 'change'), set('data-call', 'changeProject'), set::required(true)),
  22. span(set::className('input-group-addon'), $lang->kanban->selectedLane),
  23. picker(set::name('lane'), set::items($lanePairs), set::style(array('width' => '200px')), set::required(true))
  24. )
  25. );
  26. $config->build->dtable->fieldList['id']['type'] = 'checkID';
  27. unset($config->build->dtable->fieldList['branch']);
  28. unset($config->build->dtable->fieldList['path']);
  29. unset($config->build->dtable->fieldList['actions']);
  30. $config->build->dtable->fieldList['system']['map'] = array(0 => '') + $appList;
  31. foreach($config->build->dtable->fieldList as $id => $field) $config->build->dtable->fieldList[$id]['sortType'] = false;
  32. formBase
  33. (
  34. set::id('linkForm'),
  35. set::actions(''),
  36. set::className('mt-2'),
  37. dtable
  38. (
  39. set::fixedLeftWidth('0.33'),
  40. set::checkable(true),
  41. set::userMap($users),
  42. set::cols(array_values($config->build->dtable->fieldList)),
  43. set::data(array_values($builds2Imported)),
  44. set::footToolbar(array('items' => array(array('text' => $lang->kanban->importAB, 'btnType' => 'primary', 'className' => 'size-sm batch-btn', 'data-url' => inlink('importBuild', "kanbanID=$kanbanID&regionID=$regionID&groupID=$groupID&columnID=$columnID"))))),
  45. set::footPager(usePager())
  46. )
  47. );