Browse Source

add judge whether to display or not.

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

+ 8
- 3
templates/repo/cloudbrain/new.tmpl View File

@@ -102,12 +102,17 @@
{{.i18n.Tr "repo.cloudbrain.new"}}
</h3>
<div class="ui attached segment">
<br>
<!-- <br> -->
<div class="inline required field">
<label>任务名称</label>
<input name="job_name" id="cloudbrain_job_name" placeholder="任务名称" value="{{.job_name}}" tabindex="3" autofocus required maxlength="255">
</div>
<br>

<div class="inline required field" style="{{if .is_benchmark_enabled}}display:block;{{else}}display:none;{{end}}">
<label>任务类型</label>
<input name="job_type" id="cloudbrain_job_type" placeholder="任务类型" value="{{.JobType}}" tabindex="3" autofocus required maxlength="255">
</div>

<div class="inline required field">
<label>镜像</label>
<select class="ui search dropdown" id="cloudbrain_image" placeholder="选择镜像" style='width:385px' name="image">
@@ -136,7 +141,7 @@
<label>代码存放路径</label>
<input name="code_path" id="cloudbrain_code_path" value="{{.code_path}}" tabindex="3" autofocus required maxlength="255" readonly="readonly">
</div>
<div class="inline required field">
<div class="inline required field" style="{{if .is_benchmark_enabled}}display:block;{{else}}display:none;{{end}}">
<label>benchmark脚本存放路径</label>
<input name="benchmark_path" id="cloudbrain_benchmark_path" value="{{.benchmark_path}}" tabindex="3" autofocus required maxlength="255" readonly="readonly">
</div>


Loading…
Cancel
Save