|
|
@@ -126,13 +126,15 @@ |
|
|
|
|
|
|
|
<div class="inline required field cloudbrain_benchmark"> |
|
|
|
<label style="vertical-align: top; margin-top:9px">数据集类别</label> |
|
|
|
<select class="ui search dropdown" multiple="" id="cloudbrain_benchmark_category" style='width:385px' name="benchmark_category"> |
|
|
|
<select class="ui search dropdown" multiple="multiple" id="cloudbrain_benchmark_category" style='width:385px' name="benchmark_category"> |
|
|
|
{{range .benchmark_categories}} |
|
|
|
<option name="benchmark_category" value="{{.Value}}">{{.Value}}</option> |
|
|
|
{{end}} |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
|
|
|
|
<input id="store_category" type="hidden" name="get_benchmark_category"> |
|
|
|
|
|
|
|
<div class="inline required field"> |
|
|
|
<label>镜像</label> |
|
|
|
<select class="ui search dropdown" id="cloudbrain_image" placeholder="选择镜像" style='width:385px' name="image"> |
|
|
@@ -209,8 +211,8 @@ |
|
|
|
$('#cloudbrain_benchmark_category') |
|
|
|
.dropdown({ |
|
|
|
placeholder: "选择数据集类别", |
|
|
|
}) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
$('select.dropdown') |
|
|
|
.dropdown(); |
|
|
|
|
|
|
@@ -229,6 +231,7 @@ |
|
|
|
|
|
|
|
$('.ui.green.button').click(function() { |
|
|
|
selected_value = $("#cloudbrain_benchmark_category").val() |
|
|
|
$('#cloudbrain_benchmark_category option:selected').val(selected_value) |
|
|
|
$('#store_category').attr("value", selected_value) |
|
|
|
}) |
|
|
|
|
|
|
|
</script> |