|
|
@@ -162,7 +162,6 @@ |
|
|
<input type="hidden" style="width: 60%;" name="job_name" id="trainjob_job_name" value="{{.job_name}}"> |
|
|
<input type="hidden" style="width: 60%;" name="job_name" id="trainjob_job_name" value="{{.job_name}}"> |
|
|
<input style="width: 60%;" value="{{.job_name}}" tabindex="3" disabled > |
|
|
<input style="width: 60%;" value="{{.job_name}}" tabindex="3" disabled > |
|
|
</div> |
|
|
</div> |
|
|
<input type="hidden" name="version_name" value="{{.version_name}}"> |
|
|
|
|
|
<div class="unite min_title inline field"> |
|
|
<div class="unite min_title inline field"> |
|
|
<label for="description">{{.i18n.Tr "repo.modelarts.train_job.description"}} </label> |
|
|
<label for="description">{{.i18n.Tr "repo.modelarts.train_job.description"}} </label> |
|
|
<textarea style="width: 80%;" id="description" value="{{.description}}" name="description" rows="3" maxlength="255" placeholder={{.i18n.Tr "repo.modelarts.train_job.new_place"}} onchange="this.value=this.value.substring(0, 255)" onkeydown="this.value=this.value.substring(0, 255)" onkeyup="this.value=this.value.substring(0, 256)"></textarea> |
|
|
<textarea style="width: 80%;" id="description" value="{{.description}}" name="description" rows="3" maxlength="255" placeholder={{.i18n.Tr "repo.modelarts.train_job.new_place"}} onchange="this.value=this.value.substring(0, 255)" onkeydown="this.value=this.value.substring(0, 255)" onkeyup="this.value=this.value.substring(0, 256)"></textarea> |
|
|
@@ -245,7 +244,24 @@ |
|
|
<label>{{.i18n.Tr "repo.modelarts.train_job.run_parameter"}}</label> |
|
|
<label>{{.i18n.Tr "repo.modelarts.train_job.run_parameter"}}</label> |
|
|
<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> |
|
|
<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"> |
|
|
<input id="store_run_para" type="hidden" name="run_para_list"> |
|
|
<div class="dynamic field" style="margin-top: 1rem;"></div> |
|
|
|
|
|
|
|
|
<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> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
{{end}} |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -314,11 +330,8 @@ |
|
|
{{template "base/footer" .}} |
|
|
{{template "base/footer" .}} |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
console.log({{.dataset_name}}) |
|
|
|
|
|
console.log({{.params}}) |
|
|
console.log({{.params}}) |
|
|
console.log({{.flavor_name}}) |
|
|
|
|
|
console.log({{.flavor_code}}) |
|
|
|
|
|
let url_href = window.location.pathname.split('create')[0] |
|
|
|
|
|
|
|
|
let url_href = {{.RepoLink}}+'/modelarts/train-job' |
|
|
let url_post = window.location.pathname.split('?version_name=V0001')[0] |
|
|
let url_post = window.location.pathname.split('?version_name=V0001')[0] |
|
|
$(".ui.button").attr('href',url_href) |
|
|
$(".ui.button").attr('href',url_href) |
|
|
$(".ui.form").attr('action',url_post) |
|
|
$(".ui.form").attr('action',url_post) |
|
|
@@ -554,6 +567,7 @@ |
|
|
} |
|
|
} |
|
|
document.onreadystatechange = function() { |
|
|
document.onreadystatechange = function() { |
|
|
if (document.readyState === "complete") { |
|
|
if (document.readyState === "complete") { |
|
|
|
|
|
console.log("-----------") |
|
|
document.getElementById("mask").style.display = "none" |
|
|
document.getElementById("mask").style.display = "none" |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|