bbd565edee
Update app/components/editable_champ/drop_down_list_component.rb Co-authored-by: Colin Darie <colin@darie.eu>
19 lines
773 B
Text
19 lines
773 B
Text
- if render_within_fieldset?
|
|
= tag.fieldset(class: "reset-#{tag_for_depth} fr-m-0 fr-p-0") do
|
|
= 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:
|