maps: add django block around map data attributes (#42568)
This commit is contained in:
parent
75875bfd5e
commit
437c12b7a5
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue