Projet

Général

Profil

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

Serghei Mihai (congés, retour 15/05), 29 août 2018 18:10

Télécharger (1,66 ko)

Voir les différences:

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

 .../qommon/forms/widgets/map.html             | 23 +++++++++++++++++++
 1 file changed, 23 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-content %}
4
  <div class="content {{widget.content.content_extra_css_class}}"
5
     {% for attr, value in widget.content_extra_attributes.items %}
6
     {{attr}}="{{value}}"
7
     {% endfor %}
8
       >
9
    {% block widget-hint %}{{block.super}}{% endblock %}
10
    {% block widget-error %}{{block.super}}{% endblock %}
11
    {% block widget-control %}
12
   <input type="hidden" name="{{widget.name}}$latlng" {% if widget.value %}value="{{widget.value}}"{% endif %}>
13
   <div id="map-{{widget.name}}" class="qommon-map"
14
  {% if widget.readonly %}data-readonly="true"{% endif %}
15
  {% for key, value in widget.map_attributes.items %}{{key}}="{{value}}" {% endfor %}
16
  {% if widget.initial_position %}
17
    data-init-lat="{{ widget.initial_position.lat }}"
18
    data-init-lng="{{ widget.initial_position.lng }}"
19
  {% endif %}
20
  ></div>
21
  {% endblock %}
22
  </div>
23
  {% endblock %}
0
-