|
|
|
@@ -157,6 +157,8 @@ |
|
|
|
{{.CsrfTokenHtml}} |
|
|
|
<input type="hidden" name="action" value="update"> |
|
|
|
<input type="hidden" name="version_name" value=""> |
|
|
|
<input type="hidden" id="ai_engine_name" name="engine_names" value=""> |
|
|
|
<input type="hidden" id="ai_flaver_name" name="flaver_names" value=""> |
|
|
|
<h4 class="unite title ui header ">{{.i18n.Tr "repo.modelarts.train_job.basic_info"}}:</h4> |
|
|
|
<div class="required unite min_title inline field"> |
|
|
|
<label>{{.i18n.Tr "repo.modelarts.train_job.job_name"}}</label> |
|
|
|
@@ -199,7 +201,7 @@ |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="field" style="flex: 2;"> |
|
|
|
<div class="field" style="flex: 2;" id="engine_name"> |
|
|
|
<select class="ui dropdown width" id="trainjob_engine_versions" style='width: 100%;' name="engine_id"> |
|
|
|
{{if .engine_id}} |
|
|
|
<option name="engine_id" value="{{.engine_id}}">{{.engine_name}}</option> |
|
|
|
@@ -291,7 +293,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="required unite min_title inline field"> |
|
|
|
<div class="required unite min_title inline field" id="flaver_name"> |
|
|
|
<label>{{.i18n.Tr "repo.modelarts.train_job.standard"}}</label> |
|
|
|
<select class="ui dropdown width81" id="trainjob-flavor" style='width:385px' name="flavor"> |
|
|
|
{{if .flavor_name}} |
|
|
|
@@ -585,8 +587,18 @@ |
|
|
|
msg = JSON.stringify(msg) |
|
|
|
$('#store_run_para').val(msg) |
|
|
|
} |
|
|
|
function get_name(){ |
|
|
|
console.log("--------------") |
|
|
|
let name1=$("#engine_name .text").text() |
|
|
|
let name2=$("#flaver_name .text").text() |
|
|
|
console.log(name1,name2) |
|
|
|
$("input#ai_engine_name").val(name1) |
|
|
|
$("input#ai_flaver_name").val(name2) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
$('.ui.create_train_job.green.button').click(function(e) { |
|
|
|
get_name() |
|
|
|
send_run_para() |
|
|
|
validate() |
|
|
|
}) |