montpellier: add link to report a problem from the roadwork pane (#75120)
gitea/publik-base-theme/pipeline/head This commit looks good Details

This commit is contained in:
Frédéric Péters 2023-03-03 16:09:25 +01:00
parent 07efe5074e
commit 1ece39a340
2 changed files with 15 additions and 1 deletions

View File

@ -22,6 +22,10 @@ au {{date}}
{% 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 %}
{% if montpellier_signalement_uri %}
<p><a class="pk-button" href="{{ montpellier_signalement_uri }}?chantier_ext={{feature.properties.IDCHANTIER}}">Signalement</a></p>
{% endif %}
</div>
</div>
{% endfor %}

View File

@ -20,7 +20,17 @@ au {{date}}
{% 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 %}
{% if feature.fields.url or montpellier_signalement_uri %}
<p>
{% if feature.fields.url %}
<a class="pk-button" href="{{ feature.fields.url }}">Plus dinfos</a>
{% endif %}
{% if montpellier_signalement_uri %}
<a class="pk-button" href="{{ montpellier_signalement_uri }}?chantier={{feature.id}}">Signalement</a>
{% endif %}
</p>
{% endif %}
</div>
</div>
{% endfor %}