quimper: update map widget override to extend map.html (#76679) #280

Merged
fpeters merged 1 commits from wip/76679-quimper-map into main 2023-05-26 07:40:12 +02:00
1 changed files with 1 additions and 15 deletions

View File

@ -1,18 +1,4 @@
{% extends "qommon/forms/widget.html" %}
{% extends "qommon/forms/widgets/map.html" %}
{% block widget-title %}
{% endblock %}
{% block widget-control %}
<input type="hidden" name="{{widget.name}}$latlng" {% if widget.value %}value="{{widget.value}}"{% endif %}>
<div id="map-{{widget.name}}" class="qommon-map"
{% if widget.readonly %}data-readonly="true"{% endif %}
{% if widget.sync_map_and_address_fields %}data-address-sync="true"{% endif %}
{% for key, value in widget.map_attributes.items %}{{key}}="{{value}}" {% endfor %}
{% if widget.initial_position %}
data-init-lat="{{ widget.initial_position.lat }}"
data-init-lng="{{ widget.initial_position.lng }}"
{% endif %}
{% block widget-control-attributes %}{% endblock %}
></div>
{% endblock %}