diff --git a/module/programplan/lang/de.php b/module/programplan/lang/de.php index 54eabba071..bfceb973c4 100644 --- a/module/programplan/lang/de.php +++ b/module/programplan/lang/de.php @@ -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'; diff --git a/module/programplan/lang/en.php b/module/programplan/lang/en.php index 1fdb3470c6..600b43277b 100644 --- a/module/programplan/lang/en.php +++ b/module/programplan/lang/en.php @@ -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'; diff --git a/module/programplan/lang/fr.php b/module/programplan/lang/fr.php index 83aae16320..c64c90c7b5 100644 --- a/module/programplan/lang/fr.php +++ b/module/programplan/lang/fr.php @@ -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'; diff --git a/module/programplan/lang/zh-cn.php b/module/programplan/lang/zh-cn.php index f4e5f6d2fc..d1a80e95fd 100644 --- a/module/programplan/lang/zh-cn.php +++ b/module/programplan/lang/zh-cn.php @@ -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'] = '显示任务'; diff --git a/module/programplan/ui/create.html.php b/module/programplan/ui/create.html.php index 72616394f0..97dbbe146d 100644 --- a/module/programplan/ui/create.html.php +++ b/module/programplan/ui/create.html.php @@ -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');