Projet

Général

Profil

0001-villeurbanne-2018-display-map-field-comment-above-wi.patch

Serghei Mihai (congés, retour 15/05), 30 août 2018 09:42

Télécharger (1,43 ko)

Voir les différences:

Subject: [PATCH] villeurbanne-2018: display map field comment above widget
 (#25913)

 .../qommon/forms/widgets/map.html              | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 templates/variants/villeurbanne-2018/qommon/forms/widgets/map.html
templates/variants/villeurbanne-2018/qommon/forms/widgets/map.html
1
{% extends "qommon/forms/widget.html" %}
2

  
3
{% block widget-hint %}{% endblock %}
4
{% block widget-error %}{% endblock %}
5

  
6
{% block widget-control %}
7
{{widget.rendered_hint}}
8
{{widget.rendered_error}}
9
<input type="hidden" name="{{widget.name}}$latlng" {% if widget.value %}value="{{widget.value}}"{% endif %}>
10
<div id="map-{{widget.name}}" class="qommon-map"
11
     {% if widget.readonly %}data-readonly="true"{% endif %}
12
     {% for key, value in widget.map_attributes.items %}{{key}}="{{value}}" {% endfor %}
13
     {% if widget.initial_position %}
14
     data-init-lat="{{ widget.initial_position.lat }}"
15
     data-init-lng="{{ widget.initial_position.lng }}"
16
     {% endif %}
17
     ></div>
18
{% endblock %}
0
-