* [bug#66355] Show tip when stage is empty when set stage.
This commit is contained in:
@@ -117,6 +117,7 @@ $lang->programplan->confirmDelete = 'Do you want to delete the current plan?
|
||||
$lang->programplan->confirmChangeAttr = 'The type of the sub-stage will be adjusted to "%s" synchronously according to the type of the parent stage after modification. Do you want to save?';
|
||||
$lang->programplan->noticeChangeAttr = 'The type of the sub-stage will be adjusted to "%s" synchronously according to the type of the parent stage after modification';
|
||||
$lang->programplan->workloadTips = 'The proportion of the sub stage workload is divided by 100%.';
|
||||
$lang->programplan->emptyStageTip = 'Please contact the administrator to set up the IPD stage list in the "Project Process Configuration" in the backend.';
|
||||
|
||||
$lang->programplan->stageCustom['date'] = 'Show Date';
|
||||
$lang->programplan->stageCustom['task'] = 'Show Task';
|
||||
|
||||
@@ -117,6 +117,7 @@ $lang->programplan->confirmDelete = 'Do you want to delete the current plan?
|
||||
$lang->programplan->confirmChangeAttr = 'The type of the sub-stage will be adjusted to "%s" synchronously according to the type of the parent stage after modification. Do you want to save?';
|
||||
$lang->programplan->noticeChangeAttr = 'The type of the sub-stage will be adjusted to "%s" synchronously according to the type of the parent stage after modification.';
|
||||
$lang->programplan->workloadTips = 'The workload of the sub stage is divided by 100%.';
|
||||
$lang->programplan->emptyStageTip = 'Please contact the administrator to set up the IPD stage list in the "Project Process Configuration" in the backend.';
|
||||
|
||||
$lang->programplan->stageCustom['date'] = 'Show Date';
|
||||
$lang->programplan->stageCustom['task'] = 'Show Task';
|
||||
|
||||
@@ -117,6 +117,7 @@ $lang->programplan->confirmDelete = 'Do you want to delete the current plan?
|
||||
$lang->programplan->confirmChangeAttr = 'The type of the sub-stage will be adjusted to "%s" synchronously according to the type of the parent stage after modification. Do you want to save?';
|
||||
$lang->programplan->noticeChangeAttr = 'The type of the sub-stage will be adjusted to "%s" synchronously according to the type of the parent stage after modification.';
|
||||
$lang->programplan->workloadTips = 'The proportion of the sub stage workload is divided by 100%.';
|
||||
$lang->programplan->emptyStageTip = 'Please contact the administrator to set up the IPD stage list in the "Project Process Configuration" in the backend.';
|
||||
|
||||
$lang->programplan->stageCustom['date'] = 'Show Date';
|
||||
$lang->programplan->stageCustom['task'] = 'Show Task';
|
||||
|
||||
@@ -117,6 +117,7 @@ $lang->programplan->confirmDelete = '确定要删除当前计划吗?';
|
||||
$lang->programplan->confirmChangeAttr = '修改后子阶段的类型将根据父阶段类型同步调整为“%s”,是否保存?';
|
||||
$lang->programplan->noticeChangeAttr = '修改后子阶段的类型将根据父阶段类型同步调整为“%s”';
|
||||
$lang->programplan->workloadTips = '子阶段工作量占比按百分百的比例进行拆分';
|
||||
$lang->programplan->emptyStageTip = '请联系管理员,在后台的“项目流程配置”中设置IPD阶段列表。';
|
||||
|
||||
$lang->programplan->stageCustom['date'] = '显示日期';
|
||||
$lang->programplan->stageCustom['task'] = '显示任务';
|
||||
|
||||
@@ -298,6 +298,24 @@ toolbar
|
||||
backBtn(set::icon('back'), setClass('primary'), $lang->goback),
|
||||
);
|
||||
|
||||
if($project->model == 'ipd' && empty($stages) && empty($plans))
|
||||
{
|
||||
div
|
||||
(
|
||||
setClass('dtable-empty-tip bg-white'),
|
||||
div
|
||||
(
|
||||
setClass('row gap-4 items-center'),
|
||||
div
|
||||
(
|
||||
setClass('text-gray'),
|
||||
$lang->programplan->emptyStageTip
|
||||
)
|
||||
)
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
$batchFormOptions = array();
|
||||
$batchFormOptions['fixedActions'] = true; // 滚动时固定操作列。
|
||||
$batchFormOptions['actions'] = array('sort', array('type' => 'addSibling', 'icon' => 'icon-plus', 'text' => $lang->task->addSibling), array('type' => 'addSub', 'icon' => 'icon-split', 'text' => $lang->task->addSub), 'delete');
|
||||
|
||||
Reference in New Issue
Block a user