fix(repetition): prevent rage clicks on add row button

This commit is contained in:
Paul Chavard 2021-10-27 16:26:07 +02:00
parent a8dcf934f8
commit f9a8fb4ada

View file

@ -18,7 +18,7 @@
Supprimer lélément
- if champ.persisted?
= link_to champs_repetition_path(form.index), class: 'button add-row', data: { remote: true, method: 'POST', params: { champ_id: champ&.id }.to_query } do
= link_to champs_repetition_path(form.index), class: 'button add-row', data: { remote: true, disable: true, method: 'POST', params: { champ_id: champ&.id }.to_query } do
%span.icon.add
Ajouter un élément pour « #{champ.libelle} »
- else