Files
EasySoft-ZenTaoPMS/module/pivot/ui/bugassign.html.php
T
2023-11-06 17:18:12 +08:00

38 lines
1.2 KiB
PHP

<?php
declare(strict_types = 1);
/**
* The bug assign view file of pivot 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 Gang Liu <liugang@easycorp.ltd>
* @package pivot
* @link https://www.zentao.net
*/
namespace zin;
$cols = $config->pivot->dtable->bugAssign->fieldList;
$cols['assignedTo']['map'] = $users;
$generateData = function() use ($lang, $title, $cols, $bugs)
{
return panel
(
setID('pivotPanel'),
set::title($title),
set::shadow(false),
set::bodyClass('pt-0'),
dtable
(
set::striped(true),
set::bordered(true),
set::cols($cols),
set::data($bugs),
set::emptyTip($lang->error->noData),
set::height(jsRaw('getHeight')),
set::plugins(array('cellspan')),
set::getCellSpan(jsRaw('getCellSpan')),
set::cellSpanOptions(array('assignedTo' => array(), 'total' => array()))
)
);
};