demarches-normaliennes/app/components/procedure/search_component/search_component.html.haml

12 lines
495 B
Text
Raw Normal View History

= form_tag(search_admin_procedures_path, data: { turbo: true }, method: :post) do
.fr-input-group
= label_tag :query, class: "fr-label" do
Rechercher une démarche
%span.fr-hint-text Saisissez au moins 3 lettres
= text_field_tag :query, params[:query], required: true, placeholder: 'politique de la ville', minlength: "3", class: "fr-input"
2022-10-06 22:42:13 +02:00
= submit_tag 'Rechercher', class: 'fr-btn'
= render Procedure::ResultsComponent.new(grouped_procedures: @grouped_procedures)