Browse Source

Set label size on filter questions

pull/2423/head
Kat 2 years ago committed by kosiakkatrina
parent
commit
e7e0ac5f4e
  1. 2
      app/views/filters/_checkbox_filter.html.erb
  2. 2
      app/views/filters/_radio_filter.html.erb
  3. 1
      app/views/locations/_location_filters.html.erb
  4. 7
      app/views/logs/_log_filters.html.erb
  5. 2
      app/views/schemes/_scheme_filters.html.erb
  6. 1
      app/views/users/_user_filters.html.erb

2
app/views/filters/_checkbox_filter.html.erb

@ -1,4 +1,4 @@
<%= f.govuk_check_boxes_fieldset category.to_sym, legend: { text: label, size: "s" }, small: true, form_group: { classes: "app-filter__group" } do %>
<%= f.govuk_check_boxes_fieldset category.to_sym, legend: { text: label, size: }, small: true, form_group: { classes: "app-filter__group" } do %>
<% options.map do |key, option| %>
<%= f.govuk_check_box category, key.to_s,
label: { text: option },

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

@ -1,4 +1,4 @@
<%= f.govuk_radio_buttons_fieldset category.to_sym, legend: { text: label, size: "s" }, small: true, form_group: { classes: "app-filter__group" } do %>
<%= f.govuk_radio_buttons_fieldset category.to_sym, legend: { text: label, size: }, 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[:label] },

1
app/views/locations/_location_filters.html.erb

@ -21,6 +21,7 @@
options: location_status_filters,
label: "Status",
category: "status",
size: "s",
} %>
<% if request.params["search"].present? %>

7
app/views/logs/_log_filters.html.erb

@ -22,6 +22,7 @@
options: bulk_upload_options(@bulk_upload),
label: "Bulk upload",
category: "bulk_upload_id",
size: "s",
} %>
<% end %>
@ -32,6 +33,7 @@
options: collection_year_options,
label: "Collection year",
category: "years",
size: "s",
} %>
<%= render partial: "filters/checkbox_filter",
@ -40,6 +42,7 @@
options: status_filters,
label: "Status",
category: "status",
size: "s",
} %>
<% if logs_for_both_needstypes_present?(@organisation) && user_or_org_lettings_path? %>
@ -49,6 +52,7 @@
options: needstype_filters,
label: "Needs type",
category: "needstypes",
size: "s",
} %>
<% end %>
<% end %>
@ -71,6 +75,7 @@
},
label: "Assigned to",
category: "assigned_to",
size: "s",
} %>
<% if current_user.support? || non_support_with_multiple_owning_orgs? %>
@ -90,6 +95,7 @@
},
label: "Owned by",
category: "owning_organisation_select",
size: "s",
} %>
<% end %>
@ -110,6 +116,7 @@
},
label: user_or_org_lettings_path? ? "Managed by" : "Reported by",
category: "managing_organisation_select",
size: "s",
} %>
<% end %>

2
app/views/schemes/_scheme_filters.html.erb

@ -21,6 +21,7 @@
options: scheme_status_filters,
label: "Status",
category: "status",
size: "s",
} %>
<% if show_scheme_managing_org_filter?(current_user) %>
@ -40,6 +41,7 @@
},
label: "Owned by",
category: "owning_organisation_select",
size: "s",
} %>
<% end %>

1
app/views/users/_user_filters.html.erb

@ -21,6 +21,7 @@
options: user_status_filters,
label: "Status",
category: "status",
size: "s",
} %>
<% if request.params["search"].present? %>

Loading…
Cancel
Save