fix(champs): finish EditableChampComponent refactor

This commit is contained in:
Paul Chavard 2022-09-08 11:25:39 +02:00
parent 0a1a9e07c4
commit d35ceb7214
58 changed files with 135 additions and 282 deletions

View file

@ -1,6 +1,6 @@
.repetition{ id: dom_id(@champ, :rows) }
- @champ.rows.each do |champs|
= render EditableChamp::RepetitionRowComponent.new(form: @form, champ: @champ, row: champs)
= render EditableChamp::RepetitionRowComponent.new(form: @form, champ: @champ, row: champs, seen_at: @seen_at)
.actions{ 'data-turbo': 'true' }
= link_to champs_repetition_path(@champ.id), data: { turbo_method: :post }, class: 'button add-row' do