fix(repetition): re-add repetition style and indexing
This commit is contained in:
parent
2eb1f54aa1
commit
436caa2305
1 changed files with 4 additions and 2 deletions
|
@ -2,7 +2,9 @@
|
||||||
- if champ.repetition?
|
- if champ.repetition?
|
||||||
- types_de_champ = champ.dossier.revision.children_of(champ.type_de_champ)
|
- types_de_champ = champ.dossier.revision.children_of(champ.type_de_champ)
|
||||||
- champs_by_stable_id_with_row = champ.dossier.champs_by_stable_id_with_row
|
- champs_by_stable_id_with_row = champ.dossier.champs_by_stable_id_with_row
|
||||||
- champ.row_ids.each do |row_id|
|
- champ.row_ids.each.with_index do |row_id, i|
|
||||||
|
.fr-background-alt--grey.fr-p-2w.fr-my-3w.fr-ml-2w.champ-repetition
|
||||||
|
%p.font-weight-bold= "#{champ.libelle} #{i + 1} :"
|
||||||
= render ViewableChamp::SectionComponent.new(types_de_champ:, champs_by_stable_id_with_row:, row_id:, demande_seen_at: seen_at, profile:)
|
= render ViewableChamp::SectionComponent.new(types_de_champ:, champs_by_stable_id_with_row:, row_id:, demande_seen_at: seen_at, profile:)
|
||||||
|
|
||||||
- else
|
- else
|
||||||
|
|
Loading…
Add table
Reference in a new issue