Browse Source
* Add location filters to the controller * Display the status filter and clear filters * refactor status filter into scope * Update incomplete, make reactivated scope work in conjunction with other scopes. Lint * specs * styling * Update test name * uncomment a test * Move filters under navigationCLDC-2105-merge-orgs-owning-org-dropdown
kosiakkatrina
1 year ago
committed by
GitHub
11 changed files with 293 additions and 12 deletions
@ -0,0 +1,30 @@
|
||||
<div class="app-filter-layout__filter"> |
||||
<div class="app-filter"> |
||||
<div class="app-filter__header"> |
||||
<h2 class="govuk-heading-m">Filters</h2> |
||||
</div> |
||||
|
||||
<div class="app-filter__content"> |
||||
<%= form_with url: scheme_locations_path(@scheme), html: { method: :get } do |f| %> |
||||
<div class="govuk-grid-row" style="white-space: nowrap"> |
||||
<p class="govuk-grid-column-one-half"> |
||||
<%= filters_applied_text(@filter_type) %> |
||||
</p> |
||||
<p class="govuk-!-text-align-right govuk-grid-column-one-half"> |
||||
<%= reset_filters_link(@filter_type, { scheme_id: @scheme.id }) %> |
||||
</p> |
||||
</div> |
||||
|
||||
<%= render partial: "filters/checkbox_filter", |
||||
locals: { |
||||
f:, |
||||
options: location_status_filters, |
||||
label: "Status", |
||||
category: "status", |
||||
} %> |
||||
|
||||
<%= f.govuk_submit "Apply filters", class: "govuk-!-margin-bottom-0" %> |
||||
<% end %> |
||||
</div> |
||||
</div> |
||||
</div> |
Loading…
Reference in new issue