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

27 lines
1.2 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.data %}
<div class="chantier" data-chantier-id="{{feature.display_id}}" style="display: none">
<h3>{{ feature.fields.chantier }}<br>
<span class="chantier--dates">
{% with date=feature.fields.debutchantier|date %}
du {{date}}
{% endwith %}
{% with date=feature.fields.finchantier|date %}
au {{date}}
{% endwith %}
</span>
</h3>
<div>
<p class="chantier--localisations">{{ feature.fields.numero|default:"" }} {{ feature.fields.rue }}, {{ feature.fields.commune }}</p>
<p>{{feature.fields.descriptifchantier|safe}}</p>
{% if feature.fields.contacts %}<p><span class="chantier--libelle">Contacts :</span> {{feature.fields.contacts }}</p>{% endif %}
{% if feature.fields.categoriechantier %}<p><span class="chantier--libelle">Catégorie :</span> {{feature.fields.categoriechantier }}</p>{% endif %}
{% if feature.fields.emploisgeneres %}<p><span class="chantier--libelle">Emplois générés :</span> {{feature.fields.emploisgeneres }}</p>{% endif %}
{% if feature.fields.montanttravaux %}<p><span class="chantier--libelle">Montant des travaux :</span> {{feature.fields.montanttravaux }}</p>{% endif %}
{% if feature.fields.url %}<p><a class="pk-button" href="{{ feature.fields.url }}">Plus dinfos</a></p>{% endif %}
</div>
</div>
{% endfor %}