|
|
|
@@ -201,7 +201,7 @@ |
|
|
|
<div class="field" style="flex: 2;"> |
|
|
|
<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_id}}</option> |
|
|
|
<option name="engine_id" value="{{.engine_id}}">{{.engine_name}}</option> |
|
|
|
{{end}} |
|
|
|
{{range .engine_versions}} |
|
|
|
{{if ne $.engine_id .ID}} |
|
|
|
@@ -245,21 +245,21 @@ |
|
|
|
<span id="add_run_para" style="margin-left: 0.5rem;cursor:pointer;color: rgba(3, 102, 214, 100);font-size: 14px;line-height: 26px;font-family: SourceHanSansSC-medium;"><i class="plus square outline icon"></i>{{.i18n.Tr "repo.modelarts.train_job.add_run_parameter"}}</span> |
|
|
|
<input id="store_run_para" type="hidden" name="run_para_list"> |
|
|
|
<div class="dynamic field" style="margin-top: 1rem;"> |
|
|
|
{{if .params}} |
|
|
|
|
|
|
|
<div class="two fields width85" id="para0"> |
|
|
|
<div class="field"> |
|
|
|
<input type="text" name="shipping_first-name" required> |
|
|
|
</div> |
|
|
|
<div class="field"> |
|
|
|
<input type="text" name="shipping_last-name" required> |
|
|
|
</div> |
|
|
|
<span> |
|
|
|
<i class="trash icon"></i> |
|
|
|
</span> |
|
|
|
{{if ne 0 (len .params)}} |
|
|
|
{{range $k ,$v := .params}} |
|
|
|
<div class="two fields width85" id="para{{$k}}"> |
|
|
|
<div class="field"> |
|
|
|
<input type="text" name="shipping_first-name" value={{$v.Label}} required> |
|
|
|
</div> |
|
|
|
<div class="field"> |
|
|
|
<input type="text" name="shipping_last-name" value={{$v.Value}} required> |
|
|
|
</div> |
|
|
|
<span> |
|
|
|
<i class="trash icon"></i> |
|
|
|
</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@@ -330,7 +330,6 @@ |
|
|
|
{{template "base/footer" .}} |
|
|
|
|
|
|
|
<script> |
|
|
|
console.log({{.params}}) |
|
|
|
let url_href = {{.RepoLink}}+'/modelarts/train-job' |
|
|
|
let url_post = window.location.pathname.split('?version_name=V0001')[0] |
|
|
|
$(".ui.button").attr('href',url_href) |
|
|
|
@@ -567,7 +566,7 @@ |
|
|
|
} |
|
|
|
document.onreadystatechange = function() { |
|
|
|
if (document.readyState === "complete") { |
|
|
|
console.log("-----------") |
|
|
|
|
|
|
|
document.getElementById("mask").style.display = "none" |
|
|
|
} |
|
|
|
} |
|
|
|
|