54 lines
1.9 KiB
Text
54 lines
1.9 KiB
Text
- if champ.selections_utilisateur.present?
|
|
.areas-title Sélections utilisateur
|
|
.areas
|
|
%ul
|
|
- champ.selections_utilisateur.each do |geo_area|
|
|
%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
|
|
|
|
- if champ.quartiers_prioritaires?
|
|
.areas-title Quartiers prioritaires
|
|
.areas
|
|
- if !champ.geometry?
|
|
Aucune zone tracée
|
|
- elsif champ.quartiers_prioritaires.blank?
|
|
= t('errors.messages.quartiers_prioritaires_empty', count: champ.selections_utilisateur.size)
|
|
- else
|
|
%ul
|
|
- champ.quartiers_prioritaires.each do |geo_area|
|
|
%li= geo_area_label(geo_area)
|
|
|
|
- if champ.cadastres?
|
|
.areas-title Parcelles cadastrales
|
|
.areas
|
|
- if !champ.geometry?
|
|
Aucune zone tracée
|
|
- elsif champ.cadastres.blank?
|
|
= t('errors.messages.cadastres_empty', count: champ.selections_utilisateur.size)
|
|
- else
|
|
%ul
|
|
- champ.cadastres.each do |geo_area|
|
|
%li.flex.column.mb-2
|
|
= link_to '#', data: { geo_area: geo_area.id } do
|
|
= geo_area_label(geo_area)
|
|
|
|
- if champ.parcelles_agricoles?
|
|
.areas-title Parcelles agricoles (RPG)
|
|
.areas
|
|
- if !champ.geometry?
|
|
Aucune zone tracée
|
|
- elsif champ.parcelles_agricoles.blank?
|
|
= t('errors.messages.parcelles_agricoles_empty', count: champ.selections_utilisateur.size)
|
|
- else
|
|
%ul
|
|
- champ.parcelles_agricoles.each do |geo_area|
|
|
%li= geo_area_label(geo_area)
|