From c2d042eb99fc8beb53f04666192b354ea21d7292 Mon Sep 17 00:00:00 2001 From: Simon Lehericey Date: Thu, 7 Sep 2017 18:14:45 +0200 Subject: [PATCH] Dossier show: display cards champ if needed --- app/views/new_gestionnaire/dossiers/show.html.haml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/new_gestionnaire/dossiers/show.html.haml b/app/views/new_gestionnaire/dossiers/show.html.haml index 5e3592a03..af34e2cd7 100644 --- a/app/views/new_gestionnaire/dossiers/show.html.haml +++ b/app/views/new_gestionnaire/dossiers/show.html.haml @@ -11,9 +11,9 @@ .backoffice-title Formulaire - .card.featured - - champs = @dossier.ordered_champs.decorate - - if champs.any? + - champs = @dossier.ordered_champs.decorate + - if champs.any? + .card.featured = render partial: "champs", locals: { champs: champs } - if @dossier.procedure.use_api_carto