Skip to content

Commit

Permalink
Set Select all by default
Browse files Browse the repository at this point in the history
  • Loading branch information
saenom committed Apr 22, 2024
1 parent 65ebc73 commit b0226f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/admin/lieutenants/index.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
.govuk-grid-column-two-third
.form-group.search-input
= f.simple_fields_for [:filters, @search.filters] do |g|
= render "shared/form_answers/filters/assigned_lieutenancy_filter", g: g, options: LieutenantSearch.ceremonial_county_options
= render "shared/form_answers/filters/assigned_lieutenancy_filter", g: g, options: LieutenantSearch.ceremonial_county_options, selected_ids: LieutenantSearch.ceremonial_county_options.map(&:second)
.govuk-button-group
= f.submit "Search", class: 'govuk-button'
= link_to "Clear search",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
include_blank: true,
collection: options,
label: 'Lord Lieutenancy assigned',
input_html: { multiple: true, class: 'js-admin-filter-option' }
input_html: { multiple: true, class: 'js-admin-filter-option' },
selected: defined?(selected_ids) ? selected_ids : nil

0 comments on commit b0226f6

Please sign in to comment.