* Finish task #97630.
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
/**
|
||||
* The testtask view file of execution 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 Sun Guangming<sunguangming@easycorp.ltd>
|
||||
* @package execution
|
||||
* @link https://www.zentao.net
|
||||
*/
|
||||
namespace zin;
|
||||
|
||||
jsVar('allTasks', $lang->testtask->allTasks);
|
||||
jsVar('pageSummary', sprintf($lang->testtask->allSummary, count($tasks), $waitCount, $testingCount, $blockedCount, $doneCount));
|
||||
jsVar('checkedAllSummary', $lang->testtask->checkedAllSummary);
|
||||
|
||||
$tasks = initTableData(array_values($tasks), $config->execution->testtask->dtable->fieldList);
|
||||
|
||||
$footToolbar = array();
|
||||
if($canBeChanged and common::hasPriv('testreport', 'browse'))
|
||||
{
|
||||
$footToolbar = array('items' => array
|
||||
(
|
||||
array('text' => $lang->testreport->common, 'className' => 'batch-btn', 'data-url' => createLink('execution', 'testreport', "objectID=$executionID&objctType=execution"))
|
||||
), 'btnProps' => array('size' => 'sm', 'btnType' => 'secondary'));
|
||||
}
|
||||
|
||||
dtable
|
||||
(
|
||||
set::id('taskTable'),
|
||||
set::userMap($users),
|
||||
set::cols($config->execution->testtask->dtable->fieldList),
|
||||
set::data($tasks),
|
||||
set::plugins(array('cellspan')),
|
||||
set::onRenderCell(jsRaw('window.onRenderCell')),
|
||||
set::getCellSpan(jsRaw('window.getCellSpan')),
|
||||
set::footToolbar($footToolbar),
|
||||
set::footPager(usePager(array
|
||||
(
|
||||
'recPerPage' => $pager->recPerPage,
|
||||
'recTotal' => $pager->recTotal,
|
||||
'linkCreator' => helper::createLink('execution', 'testtask', "executionID={$execution->id}&orderBy={$orderBy}&recTotal={$pager->recTotal}&recPerPage={recPerPage}&page={page}")
|
||||
))),
|
||||
set::checkInfo(jsRaw('function(checkedIDList){return window.setStatistics(this, checkedIDList);}')),
|
||||
);
|
||||
Reference in New Issue
Block a user