Browse Source

radio button again

pull/548/head
Ted 3 years ago
parent
commit
135c96667c
  1. 8
      app/views/filters/_radio_filter.html.erb

8
app/views/filters/_radio_filter.html.erb

@ -0,0 +1,8 @@
<%= f.govuk_radio_buttons_fieldset category.to_sym, legend: { text: label, size: "s" }, small: true, form_group: { classes: "app-filter__group" } do %>
<% options.map do |key, option| %>
<%= f.govuk_radio_button category, key.to_s,
label: { text: option },
checked: filter_selected?(category, key),
size: "s" %>
<% end %>
<% end %>
Loading…
Cancel
Save