From 3137f508ed719cd29118193a6eda51a6387e665f Mon Sep 17 00:00:00 2001 From: Lisa Durand Date: Mon, 27 Mar 2023 14:44:45 +0200 Subject: [PATCH] make cancel button to reset form for instruction button --- .../dossiers/_instruction_button_motivation.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/instructeurs/dossiers/_instruction_button_motivation.html.haml b/app/views/instructeurs/dossiers/_instruction_button_motivation.html.haml index d241281a5..f7e0dcbcf 100644 --- a/app/views/instructeurs/dossiers/_instruction_button_motivation.html.haml +++ b/app/views/instructeurs/dossiers/_instruction_button_motivation.html.haml @@ -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