53 lines
2.1 KiB
PHP
53 lines
2.1 KiB
PHP
<?php
|
|
/**
|
|
* The importbuild view file of kanban module of ZenTaoPMS.
|
|
* @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
|
|
* @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
|
|
* @author Yuting Wang <wangyuting@easycorp.ltd>
|
|
* @package kanban
|
|
* @link https://www.zentao.net
|
|
*/
|
|
namespace zin;
|
|
|
|
jsVar('kanbanID', $kanbanID);
|
|
jsVar('regionID', $regionID);
|
|
jsVar('groupID', $groupID);
|
|
jsVar('columnID', $columnID);
|
|
jsVar('methodName', $this->app->rawMethod);
|
|
|
|
featureBar
|
|
(
|
|
inputGroup
|
|
(
|
|
span(set::className('input-group-addon'), $lang->kanban->selectedProject),
|
|
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)),
|
|
span(set::className('input-group-addon'), $lang->kanban->selectedLane),
|
|
picker(set::name('lane'), set::items($lanePairs), set::style(array('width' => '200px')), set::required(true))
|
|
)
|
|
);
|
|
|
|
$config->build->dtable->fieldList['id']['type'] = 'checkID';
|
|
unset($config->build->dtable->fieldList['branch']);
|
|
unset($config->build->dtable->fieldList['path']);
|
|
unset($config->build->dtable->fieldList['actions']);
|
|
$config->build->dtable->fieldList['system']['map'] = array(0 => '') + $appList;
|
|
|
|
foreach($config->build->dtable->fieldList as $id => $field) $config->build->dtable->fieldList[$id]['sortType'] = false;
|
|
|
|
formBase
|
|
(
|
|
set::id('linkForm'),
|
|
set::actions(''),
|
|
set::className('mt-2'),
|
|
dtable
|
|
(
|
|
set::fixedLeftWidth('0.33'),
|
|
set::checkable(true),
|
|
set::userMap($users),
|
|
set::cols(array_values($config->build->dtable->fieldList)),
|
|
set::data(array_values($builds2Imported)),
|
|
set::footToolbar(array('items' => array(array('text' => $lang->kanban->importAB, 'btnType' => 'primary', 'className' => 'size-sm batch-btn', 'data-url' => inlink('importBuild', "kanbanID=$kanbanID®ionID=$regionID&groupID=$groupID&columnID=$columnID"))))),
|
|
set::footPager(usePager())
|
|
)
|
|
);
|