From fa18bb69b310aaf57512d7cd5eb2852357a47659 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 15 Apr 2025 15:03:08 +0800 Subject: [PATCH] * [refac bug #61491,61497] show tip for ipd enabled. --- module/programplan/js/create.ui.js | 3 ++- module/programplan/lang/de.php | 1 + module/programplan/lang/en.php | 1 + module/programplan/lang/fr.php | 1 + module/programplan/lang/zh-cn.php | 1 + module/programplan/ui/create.html.php | 1 + 6 files changed, 7 insertions(+), 1 deletion(-) diff --git a/module/programplan/js/create.ui.js b/module/programplan/js/create.ui.js index 25810ee0c1..62dbe48084 100644 --- a/module/programplan/js/create.ui.js +++ b/module/programplan/js/create.ui.js @@ -250,7 +250,8 @@ window.handleRenderRow = function($row, index, data) if($enabled.length > 0 && !$enabled.hasClass('hidden')) { const $checkbox = $enabled.find('input[type=checkbox]'); - if(level > 0) $checkbox.attr('disabled', 'disabled').attr('title', cropStageTip); + if(data != undefined && data.status != undefined && data.status != 'wait') $checkbox.attr('disabled', 'disabled').attr('title', cropStageTip); + if(level > 0) $checkbox.attr('disabled', 'disabled').attr('title', childEnabledTip); if($enabled.find('input.hidden').length == 0) $enabled.append("") diff --git a/module/programplan/lang/de.php b/module/programplan/lang/de.php index f56b8786d6..6560fd5236 100644 --- a/module/programplan/lang/de.php +++ b/module/programplan/lang/de.php @@ -90,6 +90,7 @@ $lang->programplan->checkBegin = '『Begin』should be valid date'; $lang->programplan->checkEnd = '『End』should be valid date'; $lang->programplan->methodTip = "You can choose to continue creating stages or {$lang->executionCommon}/Kanban for work in this stage. It's not supported to further split the {$lang->executionCommon}/Kanban."; $lang->programplan->cropStageTip = "Stages that have already started cannot be cropped"; +$lang->programplan->childEnabledTip = "Child stage enabled follows parent stage."; $lang->programplan->reviewedPointTip = "The review point has been submitted for review and can no longer be operated."; $lang->programplan->milestoneList[1] = 'Yes'; diff --git a/module/programplan/lang/en.php b/module/programplan/lang/en.php index 102b1ab61c..63c1615de7 100644 --- a/module/programplan/lang/en.php +++ b/module/programplan/lang/en.php @@ -90,6 +90,7 @@ $lang->programplan->checkBegin = '『Begin』should be valid date'; $lang->programplan->checkEnd = '『End』should be valid date'; $lang->programplan->methodTip = "You can choose to continue creating stages or {$lang->executionCommon}/Kanban for work in this stage. It's not supported to further split the {$lang->executionCommon}/Kanban."; $lang->programplan->cropStageTip = "Stages that have already started cannot be cropped"; +$lang->programplan->childEnabledTip = "Child stage enabled follows parent stage."; $lang->programplan->reviewedPointTip = "The review point has been submitted for review and can no longer be operated."; $lang->programplan->milestoneList[1] = 'Yes'; diff --git a/module/programplan/lang/fr.php b/module/programplan/lang/fr.php index 0079dd7b39..b17178ba64 100644 --- a/module/programplan/lang/fr.php +++ b/module/programplan/lang/fr.php @@ -90,6 +90,7 @@ $lang->programplan->checkBegin = '『Begin』should be valid date'; $lang->programplan->checkEnd = '『End』should be valid date'; $lang->programplan->methodTip = "You can choose to continue creating stages or {$lang->executionCommon}/Kanban for work in this stage. It's not supported to further split the {$lang->executionCommon}/Kanban."; $lang->programplan->cropStageTip = "Stages that have already started cannot be cropped"; +$lang->programplan->childEnabledTip = "Child stage enabled follows parent stage."; $lang->programplan->reviewedPointTip = "The review point has been submitted for review and can no longer be operated."; $lang->programplan->milestoneList[1] = 'Yes'; diff --git a/module/programplan/lang/zh-cn.php b/module/programplan/lang/zh-cn.php index 9ca240b274..3cc71018be 100644 --- a/module/programplan/lang/zh-cn.php +++ b/module/programplan/lang/zh-cn.php @@ -90,6 +90,7 @@ $lang->programplan->checkBegin = '『计划开始』应当为合法的日 $lang->programplan->checkEnd = '『计划完成』应当为合法的日期'; $lang->programplan->methodTip = "您可以在该阶段下选择继续创建阶段或创建{$lang->executionCommon}/看板进行工作。{$lang->executionCommon}/看板不支持继续拆分。"; $lang->programplan->cropStageTip = "已经开始了的阶段不能再裁剪"; +$lang->programplan->childEnabledTip = "子阶段启用状态跟随父阶段"; $lang->programplan->reviewedPointTip = "该评审点已提交评审不能再操作"; $lang->programplan->milestoneList[1] = '是'; diff --git a/module/programplan/ui/create.html.php b/module/programplan/ui/create.html.php index fde97ddea2..8ff1518fcb 100644 --- a/module/programplan/ui/create.html.php +++ b/module/programplan/ui/create.html.php @@ -225,6 +225,7 @@ jsVar('initType', ($planID && $plans) ? reset($plans)->type : 'stage'); jsVar('planGrade', $programPlan ? $programPlan->grade + 1 : 1); jsVar('syncData', $syncData); jsVar('cropStageTip', $lang->programplan->cropStageTip); +jsVar('childEnabledTip', $lang->programplan->childEnabledTip); jsVar('typeList', $lang->execution->typeList); jsVar('confirmCreateTip', $lang->project->confirmCreateStage); jsVar('errorLang', $lang->programplan->error);