|
|
|
@ -1,10 +1,11 @@ |
|
|
|
|
|
|
|
<span class="non-js-text-search-input-field"> |
|
|
|
<%= f.govuk_text_field "#{category}_text_search".to_sym, |
|
|
|
<%= f.govuk_text_field "#{category}_text_search".to_sym, |
|
|
|
label: { text: label, hidden: secondary }, |
|
|
|
label: { text: label, hidden: secondary }, |
|
|
|
"data-controller": "search conditional-filter", |
|
|
|
"data-controller": "search conditional-filter", |
|
|
|
caption: { text: caption_text }, |
|
|
|
caption: { text: caption_text }, |
|
|
|
"data-info": { search_url: filter_search_url(category.to_sym) }.to_json, |
|
|
|
"data-info": { search_url: filter_search_url(category.to_sym) }.to_json, |
|
|
|
value: selected_option("#{category}_text_search", @filter_type) %> |
|
|
|
value: selected_option("#{category}_text_search", @filter_type) %> |
|
|
|
|
|
|
|
</span> |
|
|
|
<%= f.govuk_select(category.to_sym, |
|
|
|
<%= f.govuk_select(category.to_sym, |
|
|
|
label: { text: label, hidden: secondary }, |
|
|
|
label: { text: label, hidden: secondary }, |
|
|
|
"data-controller": "search conditional-filter", |
|
|
|
"data-controller": "search conditional-filter", |
|
|
|
|