Group collection of checkboxes into a fieldset element

This commit is contained in:
Senén Rodero Rodríguez
2020-10-28 16:28:04 +01:00
parent a543fa7ea2
commit 96a0f1f854

View File

@@ -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">