|
|
|
|
@ -1,3 +1,10 @@
|
|
|
|
|
<%= f.govuk_text_field "#{category}_text_search".to_sym, |
|
|
|
|
label: { text: label, hidden: secondary }, |
|
|
|
|
"data-controller": "search conditional-filter", |
|
|
|
|
caption: { text: caption_text }, |
|
|
|
|
"data-info": { search_url: filter_search_url(category.to_sym) }.to_json, |
|
|
|
|
value: selected_option("#{category}_text_search", @filter_type) %> |
|
|
|
|
|
|
|
|
|
<%= f.govuk_select(category.to_sym, |
|
|
|
|
label: { text: label, hidden: secondary }, |
|
|
|
|
"data-controller": "search conditional-filter", |
|
|
|
|
@ -10,9 +17,3 @@
|
|
|
|
|
<%= answer.id == "" ? "disabled" : "" %>><%= answer.name %></option> |
|
|
|
|
<% end %> |
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
|
|
<%= f.govuk_text_field "#{category}_text_search".to_sym, |
|
|
|
|
label: { text: label, hidden: secondary }, |
|
|
|
|
"data-controller": "search conditional-filter", |
|
|
|
|
"data-info": { search_url: filter_search_url(category.to_sym) }.to_json, |
|
|
|
|
value: selected_option("#{category}_text_search", @filter_type) %> |
|
|
|
|
|