|
|
@ -2,9 +2,9 @@ |
|
|
|
<div class="app-filter" > |
|
|
|
<div class="app-filter" > |
|
|
|
<div class="app-filter__header"> |
|
|
|
<div class="app-filter__header"> |
|
|
|
<h2 class="govuk-heading-m">Filters</h2> |
|
|
|
<h2 class="govuk-heading-m">Filters</h2> |
|
|
|
<button |
|
|
|
<button |
|
|
|
class="app-filter__close" |
|
|
|
class="app-filter__close" |
|
|
|
type="button" |
|
|
|
type="button" |
|
|
|
data-controller="filter" |
|
|
|
data-controller="filter" |
|
|
|
data-action="click->filter#toggleFilter"> |
|
|
|
data-action="click->filter#toggleFilter"> |
|
|
|
Close |
|
|
|
Close |
|
|
@ -14,8 +14,8 @@ |
|
|
|
<div class="govuk-form-group app-filter__group"> |
|
|
|
<div class="govuk-form-group app-filter__group"> |
|
|
|
<%= form_with url: "/logs", html: { method: :get } do |f| %> |
|
|
|
<%= form_with url: "/logs", html: { method: :get } do |f| %> |
|
|
|
<% years = {"2021": "2021/22", "2022": "2022/23"} %> |
|
|
|
<% years = {"2021": "2021/22", "2022": "2022/23"} %> |
|
|
|
<%= render partial: "filters/checkbox_filter", locals: {f: f, options: years, label: "Collection year", category: "year" } %> |
|
|
|
<%= render partial: "filters/checkbox_filter", locals: { f: f, options: years, label: "Collection year", category: "years" } %> |
|
|
|
<%= render partial: "filters/checkbox_filter", locals: {f: f, options: status_filters, label: "Status", category: "status" } %> |
|
|
|
<%= render partial: "filters/checkbox_filter", locals: { f: f, options: status_filters, label: "Status", category: "status" } %> |
|
|
|
<%= f.govuk_submit "Apply filters", class: "govuk-!-margin-top-4" %> |
|
|
|
<%= f.govuk_submit "Apply filters", class: "govuk-!-margin-top-4" %> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|