demarches-normaliennes/app/components/editable_champ/carte_component/carte_component.html.haml

15 lines
565 B
Text
Raw Normal View History

.fr-fieldset__element
= render @autocomplete_component
= react_component("MapEditor",
{ featureCollection: @champ.to_feature_collection,
champId: @champ.input_id,
url: update_path,
options: @champ.render_options,
autocompleteAnnounceTemplateId: @autocomplete_component.announce_template_id,
autocompleteScreenReaderInstructions: t("combo_search_component.screen_reader_instructions") },
{class: 'width-100'})
2022-08-12 10:45:04 +02:00
.geo-areas{ id: dom_id(@champ, :geo_areas) }
= render Dossiers::GeoAreasComponent.new(champ: @champ, editing: true)