Add disable_with on comment creation

This commit is contained in:
Mathieu Magnin 2017-09-08 15:04:31 +02:00
parent 3fa300d1b6
commit 3cbfd2709f

View file

@ -18,4 +18,4 @@
= form_for(Commentaire.new, url: commentaire_dossier_path(@dossier.procedure, @dossier), html: { class: 'form' }) do |f| = form_for(Commentaire.new, url: commentaire_dossier_path(@dossier.procedure, @dossier), html: { class: 'form' }) do |f|
= f.text_area :body, rows: 5, placeholder: 'Répondre ici', required: true = f.text_area :body, rows: 5, placeholder: 'Répondre ici', required: true
.send-wrapper .send-wrapper
= f.submit 'Envoyer', class: 'button send' = f.submit 'Envoyer', class: 'button send', data: { disable_with: "Envoi..." }