* project: add emptyTip, createTip and createLink attributes to dtable.

This commit is contained in:
liugang
2023-11-08 14:01:28 +08:00
parent 334936ff5a
commit 37a89c156d
2 changed files with 10 additions and 2 deletions
+5 -1
View File
@@ -27,9 +27,10 @@ featureBar
)
);
$canCreate = common::canModify('project', $project) && common::hasPriv('testtask', 'create');
toolbar
(
common::canModify('project', $project) && common::hasPriv('testtask', 'create') ? btn
$canCreate ? btn
(
setClass('btn primary'),
set::icon('plus'),
@@ -74,6 +75,9 @@ dtable
'linkCreator' => helper::createLink('project', 'testtask', "projectID={$project->id}&orderBy={$orderBy}&recTotal={$pager->recTotal}&recPerPage={recPerPage}&page={page}")
))),
set::checkInfo(jsRaw('function(checkedIDList){return window.setStatistics(this, checkedIDList);}')),
set::emptyTip($lang->testtask->noTesttask),
set::createTip($lang->testtask->create),
set::createLink($canCreate ? createLink('testtask', 'create', "product=0&executionID=0&build=0&projectID={$project->id}") : '')
);
render();