From c049957bbeea2e14e625a61be3b8130566b82bca Mon Sep 17 00:00:00 2001 From: Simon Lehericey Date: Wed, 27 Sep 2017 16:33:55 +0200 Subject: [PATCH] Add disable_with on annotations_privees and avis --- .../new_gestionnaire/dossiers/annotations_privees.html.haml | 2 +- app/views/new_gestionnaire/dossiers/avis.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/new_gestionnaire/dossiers/annotations_privees.html.haml b/app/views/new_gestionnaire/dossiers/annotations_privees.html.haml index 6aaece0df..35ac93e5b 100644 --- a/app/views/new_gestionnaire/dossiers/annotations_privees.html.haml +++ b/app/views/new_gestionnaire/dossiers/annotations_privees.html.haml @@ -12,7 +12,7 @@ locals: { champ: champ, form: champ_form } .send-wrapper - = f.submit 'Sauvegarder', class: 'button send' + = f.submit 'Sauvegarder', class: 'button send', data: { disable_with: "Envoi..." } - else %h2.empty-text Aucune annotation privée diff --git a/app/views/new_gestionnaire/dossiers/avis.html.haml b/app/views/new_gestionnaire/dossiers/avis.html.haml index 5484a0b29..1450cc677 100644 --- a/app/views/new_gestionnaire/dossiers/avis.html.haml +++ b/app/views/new_gestionnaire/dossiers/avis.html.haml @@ -13,6 +13,6 @@ = f.label :confidentiel, 'Cet avis est' = f.select :confidentiel, [['partagé avec les autres experts', false], ['confidentiel', true]] .send-wrapper - = f.submit 'Demander un avis', class: 'button send' + = f.submit 'Demander un avis', class: 'button send', data: { disable_with: "Envoi..." } = render partial: 'new_gestionnaire/avis/avis_list', locals: { avis: @dossier.avis }