Browse Source
* Add user status filters * Add filters to the pages * only show unconfirmed and deactivated logs as deactivated * Look at last signed in at to determine unconfirmed userspull/1805/head
kosiakkatrina
1 year ago
committed by
GitHub
11 changed files with 296 additions and 19 deletions
@ -0,0 +1,29 @@ |
|||||||
|
<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: users_path, 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) %> |
||||||
|
</p> |
||||||
|
</div> |
||||||
|
|
||||||
|
<%= render partial: "filters/checkbox_filter", |
||||||
|
locals: { |
||||||
|
f:, |
||||||
|
options: user_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