2023-04-14 10:55:36 +02:00
|
|
|
- if render_within_fieldset?
|
2023-04-25 15:56:56 +02:00
|
|
|
= tag.fieldset(class: "reset-#{tag_for_depth} fr-m-0 fr-p-0") do
|
2023-04-14 10:55:36 +02:00
|
|
|
= tag.legend do
|
|
|
|
= render EditableChamp::HeaderSectionComponent.new(champ: header_section)
|
|
|
|
- splitted_tail.each do |section, champ|
|
|
|
|
- if section.present?
|
|
|
|
= render section
|
|
|
|
- else
|
|
|
|
= fields_for champ.input_name, champ do |form|
|
|
|
|
= render EditableChamp::EditableChampComponent.new form: ,champ:
|
|
|
|
- else
|
|
|
|
- if header_section
|
|
|
|
= render EditableChamp::HeaderSectionComponent.new(champ: header_section)
|
|
|
|
- splitted_tail.each do |section, champ|
|
|
|
|
- if section.present?
|
|
|
|
= render section
|
|
|
|
- else
|
|
|
|
= fields_for champ.input_name, champ do |form|
|
|
|
|
= render EditableChamp::EditableChampComponent.new form: ,champ:
|