Browse Source

fix issue

pull/950/head
zhoupzh 3 years ago
parent
commit
c7a0e4da44
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      templates/repo/modelarts/trainjob/new.tmpl

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

@@ -175,6 +175,9 @@
<div class="required unite min_title inline field"> <div class="required unite min_title inline field">
<label style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.code_version"}}</label> <label style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.code_version"}}</label>
<select class="ui dropdown width80 left2" id="code_version" name="branch_name"> <select class="ui dropdown width80 left2" id="code_version" name="branch_name">
{{if .branch_name}}
<option name="branch_name" value="{{.branch_name}}">{{.branch_name}}</option>
{{end}}
{{range $k, $v :=.Branches}} {{range $k, $v :=.Branches}}
<option name="branch_name" value="{{$v}}">{{$v}}</option> <option name="branch_name" value="{{$v}}">{{$v}}</option>
{{end}} {{end}}
@@ -233,7 +236,7 @@
<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 class="dynamic field" style="margin-top: 1rem;">
{{if ne 0 (len .params)}}
<!-- {{if ne 0 (len .params)}}
{{range $k ,$v := .params}} {{range $k ,$v := .params}}
<div class="two fields width85" id="para{{$k}}"> <div class="two fields width85" id="para{{$k}}">
<div class="field"> <div class="field">
@@ -248,7 +251,7 @@


</div> </div>
{{end}} {{end}}
{{end}}
{{end}} -->
</div> </div>
</div> </div>




Loading…
Cancel
Save