From f945b502728fa56a59136f132bb25a422eb97847 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Tue, 2 Nov 2021 12:08:58 +0800 Subject: [PATCH] fix issue --- options/locale/locale_en-US.ini | 1 + options/locale/locale_zh-CN.ini | 1 + templates/repo/modelarts/notebook/index.tmpl | 14 ++++++++------ templates/repo/modelarts/trainjob/index.tmpl | 2 +- templates/repo/modelarts/trainjob/new.tmpl | 2 +- 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index e003f5c1a..7d1d7a3e0 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -792,6 +792,7 @@ modelarts.train_job.new_debug= New Debug Task modelarts.train_job.new_train=New Train Task modelarts.train_job.config=Configuration information modelarts.train_job.new=New train Task +modelarts.train_job.new_place=The description should not exceed 256 characters diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index 336bc83da..81b4a8459 100755 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -793,6 +793,7 @@ modelarts.train_job.new_debug=新建调试任务 modelarts.train_job.new_train=新建训练任务 modelarts.train_job.config=配置信息 modelarts.train_job.new=新建训练任务 +modelarts.train_job.new_place=描述字数不超过256个字符 diff --git a/templates/repo/modelarts/notebook/index.tmpl b/templates/repo/modelarts/notebook/index.tmpl index 01e2b6545..1ac984117 100755 --- a/templates/repo/modelarts/notebook/index.tmpl +++ b/templates/repo/modelarts/notebook/index.tmpl @@ -324,7 +324,7 @@
{{$.CsrfTokenHtml}} {{if $.Permission.CanWrite $.UnitTypeCloudBrain}} - + {{$.i18n.Tr "repo.stop"}} {{else}} @@ -352,7 +352,7 @@ {{$.CsrfTokenHtml}} {{if $.Permission.CanWrite $.UnitTypeCloudBrain}} - + {{$.i18n.Tr "repo.delete"}} {{else}} @@ -477,10 +477,10 @@ } if(status!=="STOPPED" || status!=="FAILED"){ - $('#stop-model-debug-'+jobID).removeClass('disabled') - $('#stop-model-debug-'+jobID).addClass('blue') - $('#model-delete-'+jobID).removeClass('red') - $('#model-delete-'+jobID).addClass('disabled') + // $('#stop-model-debug-'+jobID).removeClass('disabled') + // $('#stop-model-debug-'+jobID).addClass('blue') + // $('#model-delete-'+jobID).removeClass('red') + // $('#model-delete-'+jobID).addClass('disabled') } if(status=="STOPPED" || status=="FAILED" ){ $('#stop-model-debug-'+jobID).removeClass('blue') @@ -491,6 +491,8 @@ if(status=="START_FAILED"){ $('#stop-model-debug-'+jobID).removeClass('blue') $('#stop-model-debug-'+jobID).addClass('disabled') + $('#model-delete-'+jobID).removeClass('disabled') + $('#model-delete-'+jobID).addClass('red') } }).fail(function(err) { console.log(err); diff --git a/templates/repo/modelarts/trainjob/index.tmpl b/templates/repo/modelarts/trainjob/index.tmpl index f484b0329..4337d6de8 100755 --- a/templates/repo/modelarts/trainjob/index.tmpl +++ b/templates/repo/modelarts/trainjob/index.tmpl @@ -380,7 +380,7 @@ {{$.CsrfTokenHtml}} {{if $.Permission.CanWrite $.UnitTypeCloudBrain}} - + {{$.i18n.Tr "repo.delete"}} {{else}} diff --git a/templates/repo/modelarts/trainjob/new.tmpl b/templates/repo/modelarts/trainjob/new.tmpl index 2121ded2d..6e98158d9 100755 --- a/templates/repo/modelarts/trainjob/new.tmpl +++ b/templates/repo/modelarts/trainjob/new.tmpl @@ -165,7 +165,7 @@ -->
- +