Skip to content

Commit

Permalink
仅审核通过的归档配置显示启用按钮
Browse files Browse the repository at this point in the history
  • Loading branch information
hhyo committed Feb 8, 2020
1 parent 570f3c4 commit 037a9d4
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions sql/templates/archivedetail.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,20 +111,22 @@ <h4 style="display: inline;">工单名称:<span>{{ archive_config.title }}</sp
<div id="tab-content" class="tab-content">
<!-- 归档配置信息-->
<div id="detail" role="tabpanel" class="panel-body tab-pane fade in active form-group">
<h4><b>是否启用</b></h4>
<hr/>
<div class="form-group">
<div class="left">
<div class="switch switch-small">
<label>
<input id="state"
key="state"
value="{{ archive_config.state }}"
type="checkbox">
</label>
{% if archive_config.status == 1 %}
<h4><b>是否启用</b></h4>
<hr/>
<div class="form-group">
<div class="left">
<div class="switch switch-small">
<label>
<input id="state"
key="state"
value="{{ archive_config.state }}"
type="checkbox">
</label>
</div>
</div>
</div>
</div>
{% endif %}
<h4><b>归档信息</b></h4>
<hr/>
<div class="form-horizontal">
Expand Down

0 comments on commit 037a9d4

Please sign in to comment.