Browse Source

国际化信息提交。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.8.2^2
zouap 3 years ago
parent
commit
ddfc0c4aef
6 changed files with 26 additions and 14 deletions
  1. +4
    -2
      templates/repo/grampus/trainjob/gpu/new.tmpl
  2. +4
    -2
      templates/repo/grampus/trainjob/npu/new.tmpl
  3. +4
    -2
      templates/repo/modelarts/inferencejob/new.tmpl
  4. +6
    -4
      templates/repo/modelarts/trainjob/edit_para.tmpl
  5. +4
    -2
      templates/repo/modelarts/trainjob/new.tmpl
  6. +4
    -2
      templates/repo/modelarts/trainjob/version_new.tmpl

+ 4
- 2
templates/repo/grampus/trainjob/gpu/new.tmpl View File

@@ -243,17 +243,19 @@
let value = '' let value = ''
value += `<div class="two fields width85" id= "para${i}">` value += `<div class="two fields width85" id= "para${i}">`
value += '<div class="field">' value += '<div class="field">'
let placeholder_value='{{.i18n.Tr "repo.modelarts.train_job.parameter_value"}}'
let placeholder_name='{{.i18n.Tr "repo.modelarts.train_job.parameter_name"}}'
if(flag){ if(flag){
value +=`<input type="text" class="shipping_first-name" value="${paramsObject.label}">` value +=`<input type="text" class="shipping_first-name" value="${paramsObject.label}">`
}else{ }else{
value +='<input type="text" class="shipping_first-name" required placeholder={{.i18n.Tr "repo.modelarts.train_job.parameter_name"}}>'
value +='<input type="text" class="shipping_first-name" required placeholder="' + placeholder_name+ '">'
} }
value += '</div>' value += '</div>'
value += '<div class="field">' value += '<div class="field">'
if(flag){ if(flag){
value +=`<input type="text" class="shipping_last-name" value="${paramsObject.value}">` value +=`<input type="text" class="shipping_last-name" value="${paramsObject.value}">`
}else{ }else{
value +='<input type="text" class="shipping_last-name" required placeholder={{.i18n.Tr "repo.modelarts.train_job.parameter_value"}}>'
value +='<input type="text" class="shipping_last-name" required placeholder="' + placeholder_value+ '">'
} }
value += '</div>' value += '</div>'
value += '<span><i class="trash icon"></i></span>' value += '<span><i class="trash icon"></i></span>'


+ 4
- 2
templates/repo/grampus/trainjob/npu/new.tmpl View File

@@ -269,17 +269,19 @@
let value = '' let value = ''
value += `<div class="two fields width85" id= "para${i}">` value += `<div class="two fields width85" id= "para${i}">`
value += '<div class="field">' value += '<div class="field">'
let placeholder_value='{{.i18n.Tr "repo.modelarts.train_job.parameter_value"}}'
let placeholder_name='{{.i18n.Tr "repo.modelarts.train_job.parameter_name"}}'
if(flag){ if(flag){
value +=`<input type="text" class="shipping_first-name" value="${paramsObject.label}">` value +=`<input type="text" class="shipping_first-name" value="${paramsObject.label}">`
}else{ }else{
value +='<input type="text" class="shipping_first-name" required placeholder={{.i18n.Tr "repo.modelarts.train_job.parameter_name"}}>'
value +='<input type="text" class="shipping_first-name" required placeholder="' + placeholder_name+ '">'
} }
value += '</div>' value += '</div>'
value += '<div class="field">' value += '<div class="field">'
if(flag){ if(flag){
value +=`<input type="text" class="shipping_last-name" value="${paramsObject.value}">` value +=`<input type="text" class="shipping_last-name" value="${paramsObject.value}">`
}else{ }else{
value +='<input type="text" class="shipping_last-name" required placeholder={{.i18n.Tr "repo.modelarts.train_job.parameter_value"}}>'
value +='<input type="text" class="shipping_last-name" required placeholder="' + placeholder_value+ '">'
} }
value += '</div>' value += '</div>'
value += '<span><i class="trash icon"></i></span>' value += '<span><i class="trash icon"></i></span>'


+ 4
- 2
templates/repo/modelarts/inferencejob/new.tmpl View File

@@ -410,12 +410,14 @@


// 参数增加、删除、修改、保存 // 参数增加、删除、修改、保存
function Add_parameter(i){ 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 = '<div class="two fields width85" id= "para'+ i +'">' + value = '<div class="two fields width85" id= "para'+ i +'">' +
'<div class="field">' + '<div class="field">' +
'<input type="text" name="shipping_first-name" required placeholder={{.i18n.Tr "repo.modelarts.train_job.parameter_name"}}> ' +
'<input type="text" name="shipping_first-name" required placeholder="' + placeholder_name+ '">' +
'</div> ' + '</div> ' +
'<div class="field"> ' + '<div class="field"> ' +
'<input type="text" name="shipping_last-name" required placeholder={{.i18n.Tr "repo.modelarts.train_job.parameter_value"}}>' +
'<input type="text" name="shipping_last-name" required placeholder="' + placeholder_value + '">' +
'</div>'+ '</div>'+
'<span>' + '<span>' +
'<i class="trash icon">' + '<i class="trash icon">' +


+ 6
- 4
templates/repo/modelarts/trainjob/edit_para.tmpl View File

@@ -76,10 +76,10 @@
{{range .para}} {{range .para}}
<div class="two fields"> <div class="two fields">
<div class="field"> <div class="field">
<input type="text" name="shipping_first-name" placeholder={{.i18n.Tr "repo.modelarts.train_job.parameter_name"}}>
<input type="text" name="shipping_first-name" placeholder="{{.i18n.Tr "repo.modelarts.train_job.parameter_name"}}">
</div> </div>
<div class="field"> <div class="field">
<input type="text" name="shipping_last-name" placeholder={{.i18n.Tr "repo.modelarts.train_job.parameter_value"}}>
<input type="text" name="shipping_last-name" placeholder="{{.i18n.Tr "repo.modelarts.train_job.parameter_value"}}">
</div> </div>
<span> <span>
<i class="trash icon"> <i class="trash icon">
@@ -151,12 +151,14 @@


// 参数增加、删除、修改、保存 // 参数增加、删除、修改、保存
function Add_parameter(){ 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 = '<div class="two fields">' + value = '<div class="two fields">' +
'<div class="field">' + '<div class="field">' +
'<input type="text" name="shipping_first-name" placeholder={{.i18n.Tr "repo.modelarts.train_job.parameter_name"}}> ' +
'<input type="text" name="shipping_first-name" placeholder="' + placeholder_name+ '">' +
'</div> ' + '</div> ' +
'<div class="field"> ' + '<div class="field"> ' +
'<input type="text" name="shipping_last-name" placeholder={{.i18n.Tr "repo.modelarts.train_job.parameter_value"}}>' +
'<input type="text" name="shipping_last-name" placeholder="' + placeholder_value+ '">' +
'</div>'+ '</div>'+
'<span>' + '<span>' +
'<i class="trash icon">' + '<i class="trash icon">' +


+ 4
- 2
templates/repo/modelarts/trainjob/new.tmpl View File

@@ -332,12 +332,14 @@
}); });
// 参数增加、删除、修改、保存 // 参数增加、删除、修改、保存
function Add_parameter(i) { 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 = '<div class="two fields width85" id= "para' + i + '">' + value = '<div class="two fields width85" id= "para' + i + '">' +
'<div class="field">' + '<div class="field">' +
'<input type="text" name="shipping_first-name" required placeholder={{.i18n.Tr "repo.modelarts.train_job.parameter_name"}}> ' +
'<input type="text" name="shipping_first-name" required placeholder="' + placeholder_name+ '">' +
'</div> ' + '</div> ' +
'<div class="field"> ' + '<div class="field"> ' +
'<input type="text" name="shipping_last-name" required placeholder={{.i18n.Tr "repo.modelarts.train_job.parameter_value"}}>' +
'<input type="text" name="shipping_last-name" required placeholder="' + placeholder_value+ '">' +
'</div>' + '</div>' +
'<span>' + '<span>' +
'<i class="trash icon">' + '<i class="trash icon">' +


+ 4
- 2
templates/repo/modelarts/trainjob/version_new.tmpl View File

@@ -280,12 +280,14 @@


// 参数增加、删除、修改、保存 // 参数增加、删除、修改、保存
function Add_parameter(i){ 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 = '<div class="two fields width85" id= "para'+ i +'">' + value = '<div class="two fields width85" id= "para'+ i +'">' +
'<div class="field">' + '<div class="field">' +
'<input type="text" name="shipping_first-name" required placeholder={{.i18n.Tr "repo.modelarts.train_job.parameter_name"}}> ' +
'<input type="text" name="shipping_first-name" required placeholder="' + placeholder_name+ '">' +
'</div> ' + '</div> ' +
'<div class="field"> ' + '<div class="field"> ' +
'<input type="text" name="shipping_last-name" required placeholder={{.i18n.Tr "repo.modelarts.train_job.parameter_value"}}>' +
'<input type="text" name="shipping_last-name" required placeholder="' + placeholder_value+ '">' +
'</div>'+ '</div>'+
'<span>' + '<span>' +
'<i class="trash icon">' + '<i class="trash icon">' +


Loading…
Cancel
Save