Skip to content

Commit

Permalink
Use new option select component
Browse files Browse the repository at this point in the history
  • Loading branch information
andysellick committed Sep 20, 2023
1 parent b7cf0a6 commit 8af0ea0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/views/users/_users_filter.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@
padding: true,
} %>
<%= render "components/option_select", {
<%= render "govuk_publishing_components/components/option_select", {
key: "statuses",
title: "Status",
options_container_id: "statuses_filter",
closed_on_load: @filter.no_options_selected_for?(:statuses) && @filter.any_options_selected?,
options: @filter.status_option_select_options(aria_controls_id: filtered_users_id),
} %>
<%= render "components/option_select", {
<%= render "govuk_publishing_components/components/option_select", {
key: "two_step_statuses",
title: "2SV Status",
options_container_id: "two_step_statuses_filter",
closed_on_load: @filter.no_options_selected_for?(:two_step_statuses),
options: @filter.two_step_status_option_select_options(aria_controls_id: filtered_users_id),
} %>
<%= render "components/option_select", {
<%= render "govuk_publishing_components/components/option_select", {
key: "roles",
title: "Roles",
options_container_id: "roles_filter",
Expand All @@ -42,7 +42,7 @@
} %>
<% if current_user.manageable_organisations.many? %>
<%= render "components/option_select", {
<%= render "govuk_publishing_components/components/option_select", {
key: "organisations",
title: "Organisations",
options_container_id: "organisations_filter",
Expand All @@ -54,7 +54,7 @@
} %>
<% end %>
<%= render "components/option_select", {
<%= render "govuk_publishing_components/components/option_select", {
key: "permissions",
title: "Permissions",
options_container_id: "permissions_filter",
Expand Down

0 comments on commit 8af0ea0

Please sign in to comment.