demarches-normaliennes/app/views/shared/dossiers/editable_champs/_carte.html.haml
2020-06-09 18:45:45 +02:00

5 lines
360 B
Text

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