diff --git a/app/views/case_logs/_log_filters.erb b/app/views/case_logs/_log_filters.erb index ed52227a4..7866b50f7 100644 --- a/app/views/case_logs/_log_filters.erb +++ b/app/views/case_logs/_log_filters.erb @@ -13,24 +13,24 @@
<%= form_with url: "/logs", html: { method: :get } do |f| %> - <%= f.govuk_check_boxes_fieldset :status, legend: { text: "Status", size: "s"} do %> + <%= f.govuk_check_boxes_fieldset :year, legend: { text: "Collection year", size: "s"} do %>
- <% statuses = status_filters %> - <% statuses.map do |key, option| %> - <%= f.govuk_check_box "status", "#{key}", + <% years = {"2021": "2021/22", "2022": "2022/23"} %> + <% years.map do |key, option| %> + <%= f.govuk_check_box "year", "#{key}", label: { text: option }, - checked: filter_selected?("status", key), + checked: filter_selected?("year", key), size: "s" %> <% end %>
<% end %> - <%= f.govuk_check_boxes_fieldset :year, legend: { text: "Year", size: "s"} do %> + <%= f.govuk_check_boxes_fieldset :status, legend: { text: "Status", size: "s"} do %>
- <% years = {"2021": "2021", "2022": "2022"} %> - <% years.map do |key, option| %> - <%= f.govuk_check_box "year", "#{key}", + <% statuses = status_filters %> + <% statuses.map do |key, option| %> + <%= f.govuk_check_box "status", "#{key}", label: { text: option }, - checked: filter_selected?("year", key), + checked: filter_selected?("status", key), size: "s" %> <% end %>