demarches-normaliennes/app/components/editable_champ/repetition_component/repetition_component.html.haml
2022-09-01 09:48:27 +02:00

8 lines
382 B
Text

.repetition{ id: dom_id(@champ, :rows) }
- @champ.rows.each do |champs|
= render EditableChamp::RepetitionRowComponent.new(form: @form, champ: @champ, row: champs)
.actions{ 'data-turbo': 'true' }
= link_to champs_repetition_path(@champ.id), data: { turbo_method: :post }, class: 'button add-row' do
%span.icon.add
Ajouter un élément pour « #{@champ.libelle} »