From 96a0f1f854c1960656645aae31f2c149e45d359a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sen=C3=A9n=20Rodero=20Rodr=C3=ADguez?= Date: Wed, 28 Oct 2020 16:28:04 +0100 Subject: [PATCH] Group collection of checkboxes into a `fieldset` element --- app/views/admin/banners/_form.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/admin/banners/_form.html.erb b/app/views/admin/banners/_form.html.erb index c1cb047e4..70e55079e 100644 --- a/app/views/admin/banners/_form.html.erb +++ b/app/views/admin/banners/_form.html.erb @@ -34,14 +34,14 @@
-
- <%= f.label :sections, t("admin.banners.banner.sections_label") %> +
+ <%= t("admin.banners.banner.sections_label") %> <%= 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 %> -
+