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

18 lines
681 B
Text
Raw Normal View History

- if champ.selections_utilisateur.present?
.areas-title Sélections utilisateur
.areas
%ul
- champ.selections_utilisateur.slice(0, 20).each do |geo_area|
2021-05-25 16:10:01 +02:00
= render partial: 'shared/champs/carte/geo_area', locals: { geo_area: geo_area, editing: editing }
- if champ.selections_utilisateur.size > 20
%li
%span
et #{champ.selections_utilisateur.size - 20} autres points, lignes ou polygones.
2021-07-06 11:27:27 +02:00
- if champ.cadastres.present?
2018-10-17 12:02:34 +02:00
.areas-title Parcelles cadastrales
.areas
2021-05-25 16:10:01 +02:00
%ul
- champ.cadastres.each do |geo_area|
= render partial: 'shared/champs/carte/geo_area', locals: { geo_area: geo_area, editing: editing }