Carto: display carto only when needed

This commit is contained in:
Simon Lehericey 2017-09-08 10:16:27 +02:00
parent c4f6604d98
commit d943874144

View file

@ -16,7 +16,7 @@
- if champs.any?
= render partial: "champs", locals: { champs: champs }
- if @dossier.procedure.module_api_carto.present?
- if @dossier.procedure.use_api_carto
= render partial: "map", locals: { dossier: @dossier }
- if @dossier.procedure.cerfa_flag? || @dossier.types_de_piece_justificative.any?