|
|
|
@@ -58,7 +58,27 @@ |
|
|
|
<label>{{.i18n.Tr "cloudbrain.task_name"}}</label> |
|
|
|
<input name="display_job_name" id="cloudbrain_job_name" placeholder="任务名称" value="{{.display_job_name}}" tabindex="3" autofocus required maxlength="36" onkeyup="this.value=this.value.replace(/[, ]/g,'')"> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="inline required field"> |
|
|
|
<label>{{.i18n.Tr "repo.modelarts.code_version"}}</label> |
|
|
|
<select class="ui dropdown width80 left2 {{if not .Branches}}error{{end}}" id="code_version" |
|
|
|
name="branch_name"> |
|
|
|
{{if .branch_name}} |
|
|
|
<option name="branch_name" value="{{.branch_name}}">{{.branch_name}}</option> |
|
|
|
{{range $k, $v :=.Branches}} |
|
|
|
{{ if ne $v $.branch_name }} |
|
|
|
<option name="branch_name" value="{{$v}}">{{$v}}</option> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
{{else}} |
|
|
|
<option name="branch_name" value="{{.branchName}}">{{.branchName}}</option> |
|
|
|
{{range $k, $v :=.Branches}} |
|
|
|
{{ if ne $v $.branchName }} |
|
|
|
<option name="branch_name" value="{{$v}}">{{$v}}</option> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
<div class="inline required field"> |
|
|
|
<label>{{.i18n.Tr "cloudbrain.mirror"}}</label> |
|
|
|
<select id="cloudbrain_image" class="ui search dropdown" placeholder="{{.i18n.Tr "cloudbrain.choose_mirror"}}" style='width:385px' name="image_id"> |
|
|
|
@@ -67,6 +87,7 @@ |
|
|
|
{{end}} |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div id="select-multi-dataset"> |
|
|
|
|
|
|
|
</div> |
|
|
|
|