maps: add django block around map data attributes (#42568)

This commit is contained in:
Frédéric Péters 2020-05-06 15:28:40 +02:00 committed by Thomas NOEL
parent 75875bfd5e
commit 437c12b7a5
1 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,9 @@
{% block cell-content %}
{% if title %}<h2>{{ title }}</h2>{% endif %}
{% localize off %}
<div class="combo-cell-map" data-init-state="{{ initial_state }}"
<div class="combo-cell-map"
{% block map-attributes %}
data-init-state="{{ initial_state }}"
data-init-zoom="{{ initial_zoom }}" data-min-zoom="{{ min_zoom }}"
data-max-zoom="{{ max_zoom }}" data-init-lat="{{ init_lat }}"
data-init-lng="{{ init_lng }}"
@ -15,6 +17,7 @@
data-max-bounds-lat2="{{ max_bounds.corner2.lat }}"
data-max-bounds-lng2="{{ max_bounds.corner2.lng }}"
{% endif %}
{% endblock %}
data-cell-id="{{ cell.pk }}"
>
{% endlocalize %}