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

This commit is contained in:
liugang
2023-11-08 15:49:36 +08:00
parent db95d5eec8
commit f3888083ae
4 changed files with 13 additions and 1 deletions
+3
View File
@@ -97,6 +97,9 @@ dtable
(
'linkCreator' => helper::createLink('execution', 'all', "status={$status}&orderBy={$orderBy}&productID={$productID}&param=$param&recTotal={recTotal}&recPerPage={recPerPage}&page={page}")
))),
set::emptyTip($from == 'execution' ? $lang->execution->noExecutions : $lang->execution->noExecution),
set::createTip($from == 'execution' ? $lang->execution->createExec : $lang->execution->create),
set::createLink(hasPriv('execution', 'create') ? createLink('execution', 'create') : '')
);
render();
+3
View File
@@ -60,6 +60,9 @@ dtable
array('linkCreator' => helper::createLink('execution', 'build', "executionID={$execution->id}&type={$type}&param={$param}&orderBy={$orderBy}&recTotal={recTotal}&recPerPage={page}"), 'recTotal' => $pager->recTotal, 'recPerPage' => $pager->recPerPage),
),
),
set::emptyTip($lang->build->noBuild),
set::createTip($lang->build->create),
set::createLink($canCreateBuild ? createLink('build', 'create', "executionID={$execution->id}") : ''),
);
/* ====== Render page ====== */
+3
View File
@@ -380,6 +380,9 @@ dtable
'linkCreator' => helper::createLink('execution', 'story', "executionID={$execution->id}&storyType={$storyType}&orderBy=$orderBy&type={$type}&param={$param}&recTotal={recTotal}&recPerPage={recPerPage}&page={page}")
))),
set::checkInfo(jsRaw('function(checkedIDList){return window.setStatistics(this, checkedIDList);}')),
set::emptyTip($lang->story->noStory),
set::createTip($lang->story->create),
set::createLink($canCreate ? $createLink : '')
);
render();
+4 -1
View File
@@ -182,7 +182,10 @@ dtable
'linkCreator' => helper::createLink('execution', 'task', "executionID={$execution->id}&status={$status}&param={$param}&orderBy=$orderBy&recTotal={$pager->recTotal}&recPerPage={recPerPage}&page={page}")
))),
set::checkInfo(jsRaw('function(checkedIDList){return window.setStatistics(this, checkedIDList);}')),
set::customCols(true)
set::customCols(true),
set::emptyTip($lang->task->noTask),
set::createTip($lang->task->create),
set::createLink($canCreate && common::canModify('execution', $execution) ? $createLink : '')
);
render();