Replace autosubmit by submit button
This commit is contained in:
parent
beda1814c8
commit
3c6133276b
3 changed files with 8 additions and 3 deletions
|
@ -2,3 +2,4 @@ en:
|
|||
procedures:
|
||||
label: Show files by procedure
|
||||
prompt: Select a procedure
|
||||
button: Show
|
||||
|
|
|
@ -2,3 +2,4 @@ fr:
|
|||
procedures:
|
||||
label: Afficher les dossiers par démarche
|
||||
prompt: Sélectionner une démarche
|
||||
button: Afficher
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue