2023-04-14 10:55:36 +02:00
|
|
|
- if render_within_fieldset?
|
2023-09-27 18:43:45 +02:00
|
|
|
.fr-fieldset__element{ class: class_names("fr-my-0" => render_within_fieldset?) }
|
|
|
|
%fieldset.fr-fieldset.fr-my-0{ class: "reset-#{tag_for_depth}" }
|
|
|
|
%legend.fr-fieldset__legend
|
|
|
|
= 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|
|
2023-10-09 13:02:58 +02:00
|
|
|
= render EditableChamp::EditableChampComponent.new form:, champ:
|
2023-09-27 18:43:45 +02:00
|
|
|
- else
|
|
|
|
%fieldset.fr-fieldset.fr-my-0
|
|
|
|
- if header_section
|
|
|
|
%legend.fr-fieldset__legend.fr-my-0{ class: "reset-#{tag_for_depth}" }
|
|
|
|
= render EditableChamp::HeaderSectionComponent.new(champ: header_section)
|
2023-04-14 10:55:36 +02:00
|
|
|
- splitted_tail.each do |section, champ|
|
|
|
|
- if section.present?
|
|
|
|
= render section
|
|
|
|
- else
|
|
|
|
= fields_for champ.input_name, champ do |form|
|
2023-10-09 13:02:58 +02:00
|
|
|
= render EditableChamp::EditableChampComponent.new form:, champ:
|