From 13ce8c28f04efa3c7cea8311e32dd949662c2f93 Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Mon, 16 Oct 2017 11:35:12 +0200 Subject: [PATCH] Extract the title from the card when showing the Carte --- app/views/new_gestionnaire/avis/show.html.haml | 1 + app/views/new_gestionnaire/dossiers/_map.html.haml | 1 - app/views/new_gestionnaire/dossiers/show.html.haml | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/new_gestionnaire/avis/show.html.haml b/app/views/new_gestionnaire/avis/show.html.haml index aa1a69d49..c4b339d55 100644 --- a/app/views/new_gestionnaire/avis/show.html.haml +++ b/app/views/new_gestionnaire/avis/show.html.haml @@ -17,6 +17,7 @@ = render partial: 'new_gestionnaire/dossiers/champs', locals: { champs: champs } - if @dossier.procedure.use_api_carto + .backoffice-title Cartographie = render partial: 'new_gestionnaire/dossiers/map', locals: { dossier: @dossier } - if @dossier.procedure.cerfa_flag? || @dossier.types_de_piece_justificative.any? diff --git a/app/views/new_gestionnaire/dossiers/_map.html.haml b/app/views/new_gestionnaire/dossiers/_map.html.haml index 47becb044..5ae91420d 100644 --- a/app/views/new_gestionnaire/dossiers/_map.html.haml +++ b/app/views/new_gestionnaire/dossiers/_map.html.haml @@ -1,5 +1,4 @@ .card.featured - .card-title Cartographie #map - if dossier.quartier_prioritaires.any? diff --git a/app/views/new_gestionnaire/dossiers/show.html.haml b/app/views/new_gestionnaire/dossiers/show.html.haml index 78b13aaae..0d0c38238 100644 --- a/app/views/new_gestionnaire/dossiers/show.html.haml +++ b/app/views/new_gestionnaire/dossiers/show.html.haml @@ -16,6 +16,7 @@ = render partial: "champs", locals: { champs: champs } - if @dossier.procedure.use_api_carto + .backoffice-title Cartographie = render partial: "map", locals: { dossier: @dossier } - if @dossier.procedure.cerfa_flag? || @dossier.types_de_piece_justificative.any?