Browse Source

Merge pull request '表单报错不显示数据集' (#2956) from pretrainmodel into V20220926

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/2956
Reviewed-by: zhoupzh <zhoupzh@pcl.ac.cn>
tags/v1.22.9.2^2
zhoupzh 3 years ago
parent
commit
7ca25e5213
2 changed files with 3 additions and 2 deletions
  1. +1
    -0
      modules/auth/modelarts.go
  2. +2
    -2
      templates/repo/modelarts/trainjob/new.tmpl

+ 1
- 0
modules/auth/modelarts.go View File

@@ -33,6 +33,7 @@ type CreateModelArtsTrainJobForm struct {
DisplayJobName string `form:"display_job_name" binding:"Required"`
JobName string `form:"job_name" binding:"Required"`
Attachment string `form:"attachment" binding:"Required"`
DatasetName string `form:"dataset_name"`
BootFile string `form:"boot_file" binding:"Required"`
WorkServerNumber int `form:"work_server_number" binding:"Required"`
EngineID int `form:"engine_id" binding:"Required"`


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

@@ -196,8 +196,8 @@

<div class="inline field min_title required">
<label class="label-fix-width" style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.train_job.start_file"}}</label>
{{if .bootFile}}
<input style="width: 48.5%;" name="boot_file" id="trainjob_boot_file" value="{{.bootFile}}" tabindex="3" autofocus required maxlength="255" >
{{if .boot_file}}
<input style="width: 48.5%;" name="boot_file" id="trainjob_boot_file" value="{{.boot_file}}" tabindex="3" autofocus required maxlength="255" >
{{else}}
<input style="width: 48.5%;" name="boot_file" id="trainjob_boot_file" value="" tabindex="3" autofocus required maxlength="255" >
{{end}}


Loading…
Cancel
Save