champs: fix margin of "Add row" button in the Preview

This commit is contained in:
Pierre de La Morinerie 2019-10-23 12:28:42 +02:00
parent 35e97ac617
commit 906f0fc468

View file

@ -16,5 +16,4 @@
- if champ.persisted?
= link_to "Ajouter une ligne pour « #{champ.libelle} »", champs_repetition_path(form.index), class: 'button add-row', data: { remote: true, method: 'POST', params: { champ_id: champ&.id }.to_query }
- else
%button.button{ type: :button }
= "Ajouter une ligne pour « #{champ.libelle} »"
%a.button.add-row Ajouter une ligne pour « #{champ.libelle} »