component all the champ

This commit is contained in:
simon lehericey 2022-08-12 10:45:04 +02:00
parent a98aa079e2
commit a3e8c09e71
121 changed files with 554 additions and 292 deletions

View file

@ -0,0 +1,8 @@
.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} »