2022-04-28 15:06:40 +02:00
|
|
|
.repetition
|
2019-01-30 16:14:15 +01:00
|
|
|
- champ.rows.each do |champs|
|
2022-04-28 15:06:40 +02:00
|
|
|
= render partial: 'shared/dossiers/editable_champs/repetition_row', locals: { form: form, champ: champ, row: champs }
|
2019-01-30 16:14:15 +01:00
|
|
|
|
|
|
|
- if champ.persisted?
|
2022-04-28 15:06:40 +02:00
|
|
|
= link_to champs_repetition_path(champ.id), class: 'button add-row', data: { remote: true, disable: true, method: 'POST' } do
|
2019-10-23 11:17:11 +00:00
|
|
|
%span.icon.add
|
2020-02-10 15:43:21 +01:00
|
|
|
Ajouter un élément pour « #{champ.libelle} »
|
2019-02-07 13:10:29 +01:00
|
|
|
- else
|
2019-10-23 11:17:11 +00:00
|
|
|
%a.button.add-row
|
|
|
|
%span.icon.add
|
2020-02-10 15:43:21 +01:00
|
|
|
Ajouter un élément pour « #{champ.libelle} »
|