demarches-normaliennes/app/components/editable_champ/section_component/section_component.html.haml
Martin bbd565edee correctif(ui): les balises <select> avec un balise <option> à rallonge prenent la largueur du contenu de l'option
Update app/components/editable_champ/drop_down_list_component.rb

Co-authored-by: Colin Darie <colin@darie.eu>
2023-04-27 10:05:07 +02:00

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: