Group collection of checkboxes into a fieldset element
This commit is contained in:
@@ -34,14 +34,14 @@
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="small-12 column">
|
||||
<%= f.label :sections, t("admin.banners.banner.sections_label") %>
|
||||
<fieldset class="small-12 column">
|
||||
<legend><%= t("admin.banners.banner.sections_label") %></legend>
|
||||
<%= f.collection_check_boxes(:web_section_ids, @banner_sections, :id, :name) do |b| %>
|
||||
<%= b.label do %>
|
||||
<%= b.check_box + t("admin.banners.banner.sections.#{b.text}") %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
Reference in New Issue
Block a user