91f07f86e4
Co-authored-by: Corinne Durrmeyer <corinne@inseo.fr>
21 lines
957 B
Text
21 lines
957 B
Text
- if render_within_fieldset?
|
|
.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|
|
|
= render EditableChamp::EditableChampComponent.new form:, champ:
|
|
- else
|
|
- if header_section
|
|
.fr-fieldset__legend.fr-my-0{ class: "reset-#{tag_for_depth}" }
|
|
= 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:
|