Merge pull request #711 from sgmap/display_cards_champs_if_needed

Dossier show: display cards champ if needed
This commit is contained in:
LeSim 2017-09-08 11:50:03 +02:00 committed by GitHub
commit ea245a869d

View file

@ -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