demarches-normaliennes/app/views/shared/champs/carte/_geo_area.html.haml

12 lines
469 B
Text
Raw Normal View History

%li{ class: editing ? 'mb-1' : 'flex column mb-2' }
2021-05-25 16:10:01 +02:00
- if editing
= link_to '#', data: { geo_area: geo_area.id } do
= geo_area_label(geo_area)
= text_field_tag :description, geo_area.description, data: { geo_area: geo_area.id }, placeholder: 'Description', class: 'no-margin'
- else
= link_to '#', data: { geo_area: geo_area.id } do
= geo_area_label(geo_area)
- if geo_area.description.present?
%span
= geo_area.description