make cancel button to reset form for instruction button

This commit is contained in:
Lisa Durand 2023-03-27 14:44:45 +02:00
parent 04b17e8299
commit 3137f508ed

View file

@ -32,5 +32,5 @@
.hidden{ id: "justificatif_motivation_import_#{popup_class}" }
= file_field :dossier, :justificatif_motivation, direct_upload: true
.text-right.fr-mt-2w
%span.fr-btn.fr-btn--secondary{ onclick: 'DS.motivationCancel();' } Annuler
= button_tag "Annuler", type: :reset, class: 'fr-btn fr-btn--secondary', onclick: 'DS.motivationCancel();'
= button_tag 'Valider la décision', name: :process_action, value: process_action, class: 'fr-btn fr-mr-0', title: title