Browse Source

Merge pull request 'fix-1985' (#2126) from fix-1985 into V20220519

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/2126
Reviewed-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.5.1^2
zouap 3 years ago
parent
commit
6349ca6e1d
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      routers/repo/cloudbrain.go
  2. +1
    -1
      templates/repo/cloudbrain/benchmark/new.tmpl

+ 1
- 0
routers/repo/cloudbrain.go View File

@@ -2032,6 +2032,7 @@ func ModelBenchmarkCreate(ctx *context.Context, form auth.CreateCloudBrainForm)
}

if !jobNamePattern.MatchString(displayJobName) {
cloudBrainNewDataPrepare(ctx)
ctx.RenderWithErr(ctx.Tr("repo.cloudbrain_jobname_err"), tpl, &form)
return
}


+ 1
- 1
templates/repo/cloudbrain/benchmark/new.tmpl View File

@@ -74,7 +74,7 @@
</div>
<div class="required unite min_title inline field">
<label style="font-weight: normal;"
for="description">{{.i18n.Tr "repo.modelarts.train_job.description"}}&nbsp;&nbsp;</label>
for="description">{{.i18n.Tr "repo.modelarts.train_job.description"}}</label>
<textarea style="width: 80%;" id="description" name="description" rows="3" required
maxlength="254" placeholder={{.i18n.Tr "repo.modelarts.train_job.new_place"}}
onchange="this.value=this.value.substring(0, 255)"


Loading…
Cancel
Save