* [task#152649] Add the hint for the button of stage when the stage are baselined.

This commit is contained in:
xieqiyu
2025-11-28 03:00:31 +00:00
parent f83d86e233
commit f12c033fb6
5 changed files with 15 additions and 0 deletions
+1
View File
@@ -82,3 +82,4 @@ $lang->design->confirmDelete = 'Do you want to delete this design?';
$lang->design->confirmUnlink = 'Are you sure you want to remove this submission?';
$lang->design->errorDate = 'The start date can not be greater than the end date.';
$lang->design->deleted = 'Deleted';
$lang->design->frozenTip = 'After the design are baselined, %s is not allowed.';
+1
View File
@@ -82,3 +82,4 @@ $lang->design->confirmDelete = 'Do you want to delete this design?';
$lang->design->confirmUnlink = 'Are you sure you want to remove this submission?';
$lang->design->errorDate = 'The start date can not be greater than the end date.';
$lang->design->deleted = 'Deleted';
$lang->design->frozenTip = 'After the design are baselined, %s is not allowed.';
+1
View File
@@ -82,3 +82,4 @@ $lang->design->confirmDelete = 'Do you want to delete this design?';
$lang->design->confirmUnlink = 'Are you sure you want to remove this submission?';
$lang->design->errorDate = 'The start date can not be greater than the end date.';
$lang->design->deleted = 'Deleted';
$lang->design->frozenTip = 'After the design are baselined, %s is not allowed.';
+1
View File
@@ -82,3 +82,4 @@ $lang->design->confirmDelete = '您确定要删除这个设计吗?';
$lang->design->confirmUnlink = '您确定要移除这个提交吗?';
$lang->design->errorDate = '开始日期不能大于结束日期';
$lang->design->deleted = '已删除';
$lang->design->frozenTip = '设计打基线后不允许%s';
+11
View File
@@ -46,6 +46,17 @@ toolbar
jsVar('confirmDelete', $lang->design->confirmDelete);
$tableData = initTableData($designs, $config->design->dtable->fieldList, $this->design);
foreach($tableData as $design)
{
if(!isset($design->actions)) continue;
foreach($design->actions as &$action)
{
$actionName = $action['name'];
if(!empty($design->frozen) && in_array($actionName, array('edit', 'delete'))) $action['hint'] = sprintf($this->lang->design->frozenTip, $this->lang->design->$actionName);
}
}
dtable
(
set::userMap($users),