43 lines
1.6 KiB
PHP
43 lines
1.6 KiB
PHP
<?php
|
|
declare(strict_types=1);
|
|
/**
|
|
* The linkBug view file of relase 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 Yanyi Cao <caoyanyi@easycorp.ltd>
|
|
* @package release
|
|
* @link https://www.zentao.net
|
|
*/
|
|
namespace zin;
|
|
|
|
$buildModule = $app->rawModule == 'projectrelease' ? 'projectrelease' : 'release';
|
|
|
|
$cols = array();
|
|
foreach($config->release->dtable->defaultFields['linkBug'] as $field) $cols[$field] = zget($config->bug->dtable->fieldList, $field, array());
|
|
$cols = array_map(function($col){$col['show'] = true; return $col;}, $cols);
|
|
|
|
div(setID('searchFormPanel'), set('data-module', 'bug'), searchToggle(set::open(true), set::module('bug')));
|
|
dtable
|
|
(
|
|
set::id('unlinkBugList'),
|
|
set::userMap($users),
|
|
set::checkable(true),
|
|
set::cols($cols),
|
|
set::data($allBugs),
|
|
set::footToolbar(array
|
|
(
|
|
'items' => array(array
|
|
(
|
|
'text' => $lang->release->linkBug,
|
|
'btnType' => 'primary',
|
|
'className' => 'size-sm linkObjectBtn',
|
|
'data-type' => 'bug',
|
|
'data-url' => createLink($buildModule, 'linkBug', "releaseID={$release->id}&browseType={$browseType}¶m={$param}&type={$type}"),
|
|
))
|
|
)),
|
|
set::footer(array('checkbox', 'toolbar', array('html' => html::a(createLink($buildModule, 'view', "releaseID=$release->id&type=$type"), $lang->goback, '', "class='btn size-sm'")), 'flex', 'pager')),
|
|
set::footPager(usePager()),
|
|
);
|
|
|
|
render();
|