2020-04-15 15:43:38 +02:00
|
|
|
- if champ.selections_utilisateur.present?
|
|
|
|
.areas-title Sélections utilisateur
|
|
|
|
.areas
|
|
|
|
%ul
|
|
|
|
- champ.selections_utilisateur.each do |geo_area|
|
2020-06-09 18:16:49 +02:00
|
|
|
%li{ class: editing ? '' : 'flex column mb-2' }
|
|
|
|
- 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 de la sélection'
|
|
|
|
- else
|
|
|
|
= link_to '#', data: { geo_area: geo_area.id } do
|
|
|
|
= geo_area_label(geo_area)
|
|
|
|
- if geo_area.description.present?
|
|
|
|
%span
|
|
|
|
= geo_area.description
|
2020-04-15 15:43:38 +02:00
|
|
|
|
2018-10-17 12:02:34 +02:00
|
|
|
- if champ.cadastres?
|
|
|
|
.areas-title Parcelles cadastrales
|
|
|
|
.areas
|
2020-05-14 11:21:33 +02:00
|
|
|
- if !champ.geometry?
|
2018-10-17 12:02:34 +02:00
|
|
|
Aucune zone tracée
|
|
|
|
- elsif champ.cadastres.blank?
|
2020-04-09 17:32:20 +02:00
|
|
|
= t('errors.messages.cadastres_empty', count: champ.selections_utilisateur.size)
|
2018-10-17 12:02:34 +02:00
|
|
|
- else
|
|
|
|
%ul
|
2020-04-09 17:32:20 +02:00
|
|
|
- champ.cadastres.each do |geo_area|
|
2020-06-09 18:16:49 +02:00
|
|
|
%li.flex.column.mb-2
|
|
|
|
= link_to '#', data: { geo_area: geo_area.id } do
|
|
|
|
= geo_area_label(geo_area)
|