diff --git a/app/components/types_de_champ_editor/select_champ_template_position_component/select_champ_template_position_component.html.haml b/app/components/types_de_champ_editor/select_champ_template_position_component/select_champ_template_position_component.html.haml index 023415677..8fe90db50 100644 --- a/app/components/types_de_champ_editor/select_champ_template_position_component/select_champ_template_position_component.html.haml +++ b/app/components/types_de_champ_editor/select_champ_template_position_component/select_champ_template_position_component.html.haml @@ -1,4 +1,7 @@ %div{ id: block_id, data: { 'select-champ-position-template-target': 'template', turbo_force: :server } } %select - @coordinates.each do |coordinate| - %option{ value: coordinate.stable_id }= "#{coordinate.position + 1} #{coordinate.libelle}" + - if coordinate.type_de_champ.header_section? + %option{ value: coordinate.stable_id }= "----- #{coordinate.libelle} -----" + - else + %option{ value: coordinate.stable_id }= "#{coordinate.position + 1} - #{coordinate.libelle}" \ No newline at end of file