* [task#152649] Add the hint for the button of stage when the stage are baselined.
This commit is contained in:
@@ -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.';
|
||||
|
||||
@@ -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.';
|
||||
|
||||
@@ -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.';
|
||||
|
||||
@@ -82,3 +82,4 @@ $lang->design->confirmDelete = '您确定要删除这个设计吗?';
|
||||
$lang->design->confirmUnlink = '您确定要移除这个提交吗?';
|
||||
$lang->design->errorDate = '开始日期不能大于结束日期';
|
||||
$lang->design->deleted = '已删除';
|
||||
$lang->design->frozenTip = '设计打基线后不允许%s';
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user