Replace autosubmit by submit button

This commit is contained in:
Corinne Durrmeyer 2024-05-13 11:30:18 +02:00
parent beda1814c8
commit 3c6133276b
No known key found for this signature in database
GPG key ID: DDC049DDA35585B6
3 changed files with 8 additions and 3 deletions

View file

@ -2,3 +2,4 @@ en:
procedures:
label: Show files by procedure
prompt: Select a procedure
button: Show

View file

@ -2,3 +2,4 @@ fr:
procedures:
label: Afficher les dossiers par démarche
prompt: Sélectionner une démarche
button: Afficher

View file

@ -1,4 +1,7 @@
= form_with(url: dossiers_path, method: :get, data: { controller: 'autosubmit' } ) do |f|
= form_with(url: dossiers_path, method: :get ) do |f|
= f.hidden_field :q, value: params[:q], id: nil
= f.label :procedure_id, t('.procedures.label'), class: 'fr-label', for: 'procedure_select'
= f.select :procedure_id, options_for_select(@procedures_for_select, params[:procedure_id]), { prompt: t('.procedures.prompt') }, class: 'fr-select', id: 'procedure_select'
= f.label :procedure_id, t('.procedures.label'), class: 'fr-label fr-mb-1w', for: 'procedure_select'
.flex
= f.select :procedure_id, options_for_select(@procedures_for_select, params[:procedure_id]), { prompt: t('.procedures.prompt') }, class: 'fr-select fr-mr-1w', id: 'procedure_select'
%button.fr-btn.fr-btn--sm{ 'aria-label': t('.procedures.label') }
= t('.procedures.button')