publik-base-theme/templates/variants/montpellier-ville/combo/json/chantiers-genants.html

28 lines
1.4 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% for feature in json.features %}
<div class="chantier" data-chantier-id="{{feature.properties.IDCHANTIER}}" style="display: none">
<h3>{{ feature.properties.TYPE }}<br>
<span class="chantier--dates">
{% with year=feature.properties.DEBUT|slice:":4" month=feature.properties.DEBUT|slice:"4:6" day=feature.properties.DEBUT|slice:"6:8" %}
{% with date=year|add:"-"|add:month|add:"-"|add:day|date %}
du {{date}}
{%endwith %}
{% endwith %}
{% with year=feature.properties.FIN|slice:":4" month=feature.properties.FIN|slice:"4:6" day=feature.properties.FIN|slice:"6:8" %}
{% with date=year|add:"-"|add:month|add:"-"|add:day|date %}
au {{date}}
{%endwith %}
{%endwith %}
</span>
</h3>
<div>
<p class="chantier--localisations">{{ feature.properties.LOCALISATIONS|safe }}</p>
{% if feature.properties.INCIDENCE_CIRCULATION %}<p><span class="chantier--libelle">Incidence circulation :</span> {{feature.properties.INCIDENCE_CIRCULATION}}</p>{% endif %}
{% if feature.properties.INCIDENCE_STATIONNEMENT %}<p><span class="chantier--libelle">Incidence sur le stationnement :</span> {{feature.properties.INCIDENCE_STATIONNEMENT}}</p>{% endif %}
{% if feature.properties.NATURE %}<p><span class="chantier--libelle">Nature :</span> {{feature.properties.NATURE }}</p>{% endif %}
{% if feature.properties.MOUVRAGE %}<p><span class="chantier--libelle">Maîtrise douvrage :</span> {{feature.properties.MOUVRAGE }}</p>{% endif %}
</div>
</div>
{% endfor %}