Merge pull request #768 from sgmap/disable_with
Add disable_with on annotations_privees and avis
This commit is contained in:
commit
905d59da0c
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@
|
||||||
locals: { champ: champ, form: champ_form }
|
locals: { champ: champ, form: champ_form }
|
||||||
|
|
||||||
.send-wrapper
|
.send-wrapper
|
||||||
= f.submit 'Sauvegarder', class: 'button send'
|
= f.submit 'Sauvegarder', class: 'button send', data: { disable_with: "Envoi..." }
|
||||||
|
|
||||||
- else
|
- else
|
||||||
%h2.empty-text Aucune annotation privée
|
%h2.empty-text Aucune annotation privée
|
||||||
|
|
|
@ -13,6 +13,6 @@
|
||||||
= f.label :confidentiel, 'Cet avis est'
|
= f.label :confidentiel, 'Cet avis est'
|
||||||
= f.select :confidentiel, [['partagé avec les autres experts', false], ['confidentiel', true]]
|
= f.select :confidentiel, [['partagé avec les autres experts', false], ['confidentiel', true]]
|
||||||
.send-wrapper
|
.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 }
|
= render partial: 'new_gestionnaire/avis/avis_list', locals: { avis: @dossier.avis }
|
||||||
|
|
Loading…
Reference in a new issue