Merge pull request #9022 from mfo/US/fix-sections

correctif(sections.numerotation-automatique): ETQ administrateur, je souhaite que la numerotation automatique des titres de section fonctionne meme quand si deux titres de sections se succèdent
This commit is contained in:
LeSim 2023-05-10 07:23:49 +00:00 committed by GitHub
commit a45d5f6d05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@
= render EditableChamp::EditableChampComponent.new form: ,champ:
- else
- if header_section
= render EditableChamp::HeaderSectionComponent.new(champ: header_section)
%div{ class: "reset-#{tag_for_depth}" }= render EditableChamp::HeaderSectionComponent.new(champ: header_section)
- splitted_tail.each do |section, champ|
- if section.present?
= render section