Browse Source

add benchmark_category

tags/v1.21.12.1
Gitea 4 years ago
parent
commit
d3c77d1957
1 changed files with 7 additions and 5 deletions
  1. +7
    -5
      templates/repo/cloudbrain/new.tmpl

+ 7
- 5
templates/repo/cloudbrain/new.tmpl View File

@@ -126,8 +126,8 @@
</div>

<div class="inline required field cloudbrain_benchmark">
<label>数据集类别</label>
<select class="ui search dropdown" id="cloudbrain_benchmark_category" placeholder="选择数据集类别" style='width:385px' name="benchmark_category">
<label style="vertical-align: top; margin-top:9px">数据集类别</label>
<select class="ui search dropdown" id="cloudbrain_benchmark_category" style='width:385px' name="benchmark_category">
{{range .benchmark_categories}}
<option name="benchmark_category" value="{{.Value}}">{{.Value}}</option>
{{end}}
@@ -140,9 +140,6 @@
{{range .images}}
<option name="image" value="{{.Place}}">{{.PlaceView}}</option>
{{end}}
{{range .public_images}}
<option name="image" value="{{.Place}}">{{.PlaceView}}</option>
{{end}}
</select>
</div>

@@ -206,6 +203,11 @@
}
}

$('.clearable.example .ui.inline.dropdown')
.dropdown({
placeholder: "选择数据集类别"
})

$('select.dropdown')
.dropdown();



Loading…
Cancel
Save