parent
5abc17fe74
commit
0578f4f305
1 changed files with 2 additions and 8 deletions
|
@ -42,17 +42,11 @@ module ChampHelper
|
|||
def geo_area_label(geo_area)
|
||||
case geo_area.source
|
||||
when GeoArea.sources.fetch(:cadastre)
|
||||
capture do
|
||||
concat "Parcelle n° #{geo_area.numero} - Feuille #{geo_area.prefixe} #{geo_area.section} - #{geo_area.surface.round} m"
|
||||
concat tag.sup("2")
|
||||
end
|
||||
safe_join ["Parcelle n° #{geo_area.numero} - Feuille #{geo_area.prefixe} #{geo_area.section} - #{geo_area.surface.round} m", tag.sup("2")]
|
||||
when GeoArea.sources.fetch(:selection_utilisateur)
|
||||
if geo_area.polygon?
|
||||
if geo_area.area.present?
|
||||
capture do
|
||||
concat "Une aire de surface #{geo_area.area} m"
|
||||
concat tag.sup("2")
|
||||
end
|
||||
safe_join ["Une aire de surface #{geo_area.area} m", tag.sup("2")]
|
||||
else
|
||||
"Une aire de surface inconnue"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue