Browse Source

Merge pull request 'add search when create mirror and dataset' (#137) from mirror_dataset_search into develop

Reviewed-by: 林嘉怡 <2441898885@qq.com>
Reviewed-by: yuyuanshifu <747342561@qq.com>
tags/v0.1.8
史梦园 5 years ago
parent
commit
2df2fe3d03
1 changed files with 16 additions and 14 deletions
  1. +16
    -14
      templates/repo/cloudbrain/new.tmpl

+ 16
- 14
templates/repo/cloudbrain/new.tmpl View File

@@ -81,19 +81,7 @@
} }
} }
</style> </style>
<script>
// 点击按钮后遮罩层显示
function showmask() {
document.getElementById("mask").style.display = "block"
}


// 页面加载完毕后遮罩层隐藏
document.onreadystatechange = function() {
if (document.readyState === "complete") {
document.getElementById("mask").style.display = "none"
}
}
</script>
<div id="mask"> <div id="mask">
<div id="loadingPage"> <div id="loadingPage">
<div class="rect1"></div> <div class="rect1"></div>
@@ -122,7 +110,7 @@
<br> <br>
<div class="inline required field"> <div class="inline required field">
<label>镜像</label> <label>镜像</label>
<select id="cloudbrain_image" placeholder="选择镜像" style='width:385px' name="image">
<select class="ui search dropdown" id="cloudbrain_image" placeholder="选择镜像" style='width:385px' name="image">
{{range .images}} {{range .images}}
<option name="image" value="{{.Place}}">{{.PlaceView}}</option> <option name="image" value="{{.Place}}">{{.PlaceView}}</option>
{{end}} {{end}}
@@ -130,7 +118,7 @@
</div> </div>
<div class="inline required field"> <div class="inline required field">
<label>数据集(只有zip格式的数据集才能发起云脑任务)</label> <label>数据集(只有zip格式的数据集才能发起云脑任务)</label>
<select id="cloudbrain_dataset" placeholder="选择数据集" style='width:385px' name="attachment">
<select id="cloudbrain_dataset" class="ui search dropdown" placeholder="选择数据集" style='width:385px' name="attachment">
{{range .attachments}} {{range .attachments}}
<option name="attachment" value="{{.UUID}}">{{.Attachment.Name}}</option> <option name="attachment" value="{{.UUID}}">{{.Attachment.Name}}</option>
{{end}} {{end}}
@@ -165,3 +153,17 @@
</div> </div>
</div> </div>
{{template "base/footer" .}} {{template "base/footer" .}}

<script>
// 点击按钮后遮罩层显示
function showmask() {
document.getElementById("mask").style.display = "block"
}

// 页面加载完毕后遮罩层隐藏
document.onreadystatechange = function() {
if (document.readyState === "complete") {
document.getElementById("mask").style.display = "none"
}
}
</script>

Loading…
Cancel
Save