| @@ -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>' | ||||
| @@ -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>' | ||||
| @@ -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">' + | ||||
| @@ -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">' + | ||||
| @@ -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">' + | ||||
| @@ -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">' + | ||||