Add disable_with on annotations_privees and avis

This commit is contained in:
Simon Lehericey 2017-09-27 16:33:55 +02:00 committed by Mathieu Magnin
parent 77aee1dd35
commit c049957bbe
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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 }