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

7 lines
369 B
Text
Raw Normal View History

2020-05-14 11:21:33 +02:00
- 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}")
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 }