demarches-normaliennes/app/components/procedure/search_component/search_component.html.haml
2022-10-11 09:50:21 +02:00

12 lines
438 B
Text

= form_tag(search_admin_procedures_path, data: { turbo: true }, method: :post, class: 'form') do
= label_tag :query, 'Rechercher une procédure'
.notice
%p Entrez au minimum 3 lettres
= text_field_tag :query, params[:query], required: true, placeholder: 'politique de la ville', minlength: "3"
= submit_tag 'Rechercher', class: 'fr-btn'
= render Procedure::ResultsComponent.new(grouped_procedures: @grouped_procedures)