demarches-normaliennes/app/views/shared/dossiers/editable_champs/_carte.html.haml
2020-09-15 14:39:02 +02:00

6 lines
369 B
Text

- preview = !champ.persisted?
- url = champs_carte_features_path(preview ? 'preview' : champ)
= react_component("MapEditor", { featureCollection: champ.to_feature_collection, url: url, preview: preview, options: champ.render_options }, class: "carte-#{champ.id}")
.geo-areas
= render partial: 'shared/champs/carte/geo_areas', locals: { champ: champ, editing: true }