From cf10b68d0d278e984c9095dc6f0abd2bf5af80b5 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Tue, 13 Feb 2024 12:09:03 +0100 Subject: [PATCH] fix(geo_area): allow up to 50 geo_area to be edited --- app/components/dossiers/geo_areas_component.html.haml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/dossiers/geo_areas_component.html.haml b/app/components/dossiers/geo_areas_component.html.haml index bb657eacc..b4d0b3068 100644 --- a/app/components/dossiers/geo_areas_component.html.haml +++ b/app/components/dossiers/geo_areas_component.html.haml @@ -2,12 +2,12 @@ .fr-label Sélections utilisateur .areas %ul - - champ.selections_utilisateur.slice(0, 20).each do |geo_area| + - champ.selections_utilisateur.slice(0, 50).each do |geo_area| = render Dossiers::GeoAreaComponent.new(geo_area:, editing:) - - if champ.selections_utilisateur.size > 20 + - if champ.selections_utilisateur.size > 50 %li %span - et #{champ.selections_utilisateur.size - 20} autres points, lignes ou polygones. + et #{champ.selections_utilisateur.size - 50} autres points, lignes ou polygones. - if champ.cadastres.present? .fr-label Parcelles cadastrales