conditional showing quick edit.
This commit is contained in:
parent
fe4aadef29
commit
1b35415699
|
@ -35,16 +35,18 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="widget-status">
|
<% if show_form_status_field(@bulletin)%>
|
||||||
<div class="control-group">
|
<div id="widget-status">
|
||||||
<label class="control-label"><%= t(:status) %></label>
|
<div class="control-group">
|
||||||
<div class="controls">
|
<label class="control-label"><%= t(:status) %></label>
|
||||||
<label class="checkbox inline"><%= f.check_box :is_hot %><%= t(:hot) %></label>
|
<div class="controls">
|
||||||
<label class="checkbox inline"><%= f.check_box :is_top %><%= t(:top) %></label>
|
<label class="checkbox inline"><%= f.check_box :is_hot %><%= t(:hot) %></label>
|
||||||
<label class="checkbox inline"><%= f.check_box :is_hidden %><%= t(:hidden) %></label>
|
<label class="checkbox inline"><%= f.check_box :is_top %><%= t(:top) %></label>
|
||||||
|
<label class="checkbox inline"><%= f.check_box :is_hidden %><%= t(:hidden) %></label>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<% end -%>
|
||||||
<div id="widget-role">
|
<div id="widget-role">
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label">Role</label>
|
<label class="control-label">Role</label>
|
||||||
|
|
|
@ -35,16 +35,19 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="widget-status">
|
<% if news_show_form_status_field(@news_bulletin)%>
|
||||||
<div class="control-group">
|
<div id="widget-status">
|
||||||
<label class="control-label"><%= t(:status) %></label>
|
<div class="control-group">
|
||||||
<div class="controls">
|
<label class="control-label"><%= t(:status) %></label>
|
||||||
<label class="checkbox inline"><%= f.check_box :is_hot %><%= t(:hot) %></label>
|
<div class="controls">
|
||||||
<label class="checkbox inline"><%= f.check_box :is_top %><%= t(:top) %></label>
|
<label class="checkbox inline"><%= f.check_box :is_hot %><%= t(:hot) %></label>
|
||||||
<label class="checkbox inline"><%= f.check_box :is_hidden %><%= t(:hidden) %></label>
|
<label class="checkbox inline"><%= f.check_box :is_top %><%= t(:top) %></label>
|
||||||
|
<label class="checkbox inline"><%= f.check_box :is_hidden %><%= t(:hidden) %></label>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<% end -%>
|
||||||
|
|
||||||
<div id="widget-role">
|
<div id="widget-role">
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label">Role</label>
|
<label class="control-label">Role</label>
|
||||||
|
|
Reference in New Issue