From ddfc0c4aef6bc36073330c4945cdaf9e6cb5e4a1 Mon Sep 17 00:00:00 2001 From: zouap Date: Thu, 25 Aug 2022 10:53:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- templates/repo/grampus/trainjob/gpu/new.tmpl | 6 ++++-- templates/repo/grampus/trainjob/npu/new.tmpl | 6 ++++-- templates/repo/modelarts/inferencejob/new.tmpl | 6 ++++-- templates/repo/modelarts/trainjob/edit_para.tmpl | 10 ++++++---- templates/repo/modelarts/trainjob/new.tmpl | 6 ++++-- templates/repo/modelarts/trainjob/version_new.tmpl | 6 ++++-- 6 files changed, 26 insertions(+), 14 deletions(-) diff --git a/templates/repo/grampus/trainjob/gpu/new.tmpl b/templates/repo/grampus/trainjob/gpu/new.tmpl index 384df2214..445ecbd01 100755 --- a/templates/repo/grampus/trainjob/gpu/new.tmpl +++ b/templates/repo/grampus/trainjob/gpu/new.tmpl @@ -243,17 +243,19 @@ let value = '' value += `
` value += '
' + let placeholder_value='{{.i18n.Tr "repo.modelarts.train_job.parameter_value"}}' + let placeholder_name='{{.i18n.Tr "repo.modelarts.train_job.parameter_name"}}' if(flag){ value +=`` }else{ - value +='' + value +='' } value += '
' value += '
' if(flag){ value +=`` }else{ - value +='' + value +='' } value += '
' value += '' diff --git a/templates/repo/grampus/trainjob/npu/new.tmpl b/templates/repo/grampus/trainjob/npu/new.tmpl index 28c3e115a..b84c5cc34 100755 --- a/templates/repo/grampus/trainjob/npu/new.tmpl +++ b/templates/repo/grampus/trainjob/npu/new.tmpl @@ -269,17 +269,19 @@ let value = '' value += `
` value += '
' + let placeholder_value='{{.i18n.Tr "repo.modelarts.train_job.parameter_value"}}' + let placeholder_name='{{.i18n.Tr "repo.modelarts.train_job.parameter_name"}}' if(flag){ value +=`` }else{ - value +='' + value +='' } value += '
' value += '
' if(flag){ value +=`` }else{ - value +='' + value +='' } value += '
' value += '' diff --git a/templates/repo/modelarts/inferencejob/new.tmpl b/templates/repo/modelarts/inferencejob/new.tmpl index e427a3703..ab1ac0adf 100644 --- a/templates/repo/modelarts/inferencejob/new.tmpl +++ b/templates/repo/modelarts/inferencejob/new.tmpl @@ -410,12 +410,14 @@ // 参数增加、删除、修改、保存 function Add_parameter(i){ + let placeholder_value='{{.i18n.Tr "repo.modelarts.train_job.parameter_value"}}' + let placeholder_name='{{.i18n.Tr "repo.modelarts.train_job.parameter_name"}}' value = '
' + '
' + - ' ' + + '' + '
' + '
' + - '' + + '' + '
'+ '' + '' + diff --git a/templates/repo/modelarts/trainjob/edit_para.tmpl b/templates/repo/modelarts/trainjob/edit_para.tmpl index c05c25361..e67ca0b8d 100755 --- a/templates/repo/modelarts/trainjob/edit_para.tmpl +++ b/templates/repo/modelarts/trainjob/edit_para.tmpl @@ -76,10 +76,10 @@ {{range .para}}
- +
- +
@@ -151,12 +151,14 @@ // 参数增加、删除、修改、保存 function Add_parameter(){ + let placeholder_value='{{.i18n.Tr "repo.modelarts.train_job.parameter_value"}}' + let placeholder_name='{{.i18n.Tr "repo.modelarts.train_job.parameter_name"}}' value = '
' + '
' + - ' ' + + '' + '
' + '
' + - '' + + '' + '
'+ '' + '' + diff --git a/templates/repo/modelarts/trainjob/new.tmpl b/templates/repo/modelarts/trainjob/new.tmpl index 3a9bd9dba..7818938d3 100755 --- a/templates/repo/modelarts/trainjob/new.tmpl +++ b/templates/repo/modelarts/trainjob/new.tmpl @@ -332,12 +332,14 @@ }); // 参数增加、删除、修改、保存 function Add_parameter(i) { + let placeholder_value='{{.i18n.Tr "repo.modelarts.train_job.parameter_value"}}' + let placeholder_name='{{.i18n.Tr "repo.modelarts.train_job.parameter_name"}}' value = '
' + '
' + - ' ' + + '' + '
' + '
' + - '' + + '' + '
' + '' + '' + diff --git a/templates/repo/modelarts/trainjob/version_new.tmpl b/templates/repo/modelarts/trainjob/version_new.tmpl index b9d24ba7a..c135bcd44 100644 --- a/templates/repo/modelarts/trainjob/version_new.tmpl +++ b/templates/repo/modelarts/trainjob/version_new.tmpl @@ -280,12 +280,14 @@ // 参数增加、删除、修改、保存 function Add_parameter(i){ + let placeholder_value='{{.i18n.Tr "repo.modelarts.train_job.parameter_value"}}' + let placeholder_name='{{.i18n.Tr "repo.modelarts.train_job.parameter_name"}}' value = '
' + '
' + - ' ' + + '' + '
' + '
' + - '' + + '' + '
'+ '' + '' +