Dossier show: display cards champ if needed

This commit is contained in:
Simon Lehericey 2017-09-07 18:14:45 +02:00
parent c9444f4a76
commit c2d042eb99

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