linking demandes

This commit is contained in:
Tykayn 2025-07-16 23:01:13 +02:00 committed by tykayn
parent 0aa050b38b
commit 7f79ec3a9f
6 changed files with 190 additions and 10 deletions

View file

@ -47,6 +47,7 @@
<th>Nom du commerce</th>
<th>Date de création</th>
<th>Statut</th>
<th>OSM</th>
<th>Dernière tentative de contact</th>
{% if is_granted('ROLE_ADMIN') %}
<th>Actions</th>
@ -74,6 +75,21 @@
{{ demande.status }}
</span>
</td>
<td>
{% if demande.osmObjectType and demande.osmId %}
<a href="https://www.openstreetmap.org/{{ demande.osmObjectType }}/{{ demande.osmId }}" target="_blank" title="Voir sur OpenStreetMap">
<i class="bi bi-globe"></i> {{ demande.osmObjectType }}/{{ demande.osmId }}
</a>
{% if demande.placeUuid %}
<br>
<a href="{{ path('app_public_edit_by_osm', {'osm_kind': demande.osmObjectType, 'osm_id': demande.osmId}) }}" title="Éditer la place">
<i class="bi bi-pencil-square"></i> Éditer
</a>
{% endif %}
{% else %}
-
{% endif %}
</td>
<td>{{ demande.lastContactAttempt ? demande.lastContactAttempt|date('Y-m-d H:i:s') : '' }}</td>
{% if is_granted('ROLE_ADMIN') %}
<td>
@ -92,7 +108,7 @@
</tr>
{% else %}
<tr>
<td colspan="{% if is_granted('ROLE_ADMIN') %}6{% else %}5{% endif %}" class="text-center">Aucune demande trouvée pour cette ville</td>
<td colspan="{% if is_granted('ROLE_ADMIN') %}7{% else %}6{% endif %}" class="text-center">Aucune demande trouvée pour cette ville</td>
</tr>
{% endfor %}
</tbody>