demarches-normaliennes/app/views/shared/dossiers/editable_champs/_carte.html.haml

6 lines
416 B
Text
Raw Normal View History

2020-05-14 11:21:33 +02:00
- preview = !champ.persisted?
2020-07-30 17:10:26 +02:00
= react_component("MapEditor", { featureCollection: champ.to_feature_collection, url: champs_carte_features_path(preview ? 'preview' : champ), preview: preview, hasCadastres: !!champ.cadastres?, ign: feature_enabled_for?(:carte_ign, champ.procedure) }, class: "carte-#{champ.id}")
2018-10-17 12:07:12 +02:00
.geo-areas
2020-06-09 17:19:59 +02:00
= render partial: 'shared/champs/carte/geo_areas', locals: { champ: champ, editing: true }