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

@ -96,6 +96,7 @@
<th>Email</th>
<th>Date de création</th>
<th>Statut</th>
<th>OSM</th>
<th>Place UUID</th>
<th>Dernière tentative de contact</th>
<th>Actions</th>
@ -105,7 +106,15 @@
{% for demande in demandes %}
<tr>
<td>{{ demande.id }}</td>
<td>{{ demande.query }}</td>
<td>
{% if demande.placeUuid and demande.osmObjectType and demande.osmId %}
<a href="{{ path('app_public_edit_by_osm', {'osm_kind': demande.osmObjectType, 'osm_id': demande.osmId}) }}" title="Éditer la place">
{{ demande.query }}
</a>
{% else %}
{{ demande.query }}
{% endif %}
</td>
<td>{{ demande.email }}</td>
<td>{{ demande.createdAt ? demande.createdAt|date('Y-m-d H:i:s') : '' }}</td>
<td>
@ -123,7 +132,28 @@
{{ demande.status }}
</span>
</td>
<td>{{ demande.placeUuid }}</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>
{% else %}
-
{% endif %}
</td>
<td>
{% if demande.placeUuid %}
{% if demande.osmObjectType and demande.osmId %}
<a href="{{ path('app_public_edit_by_osm', {'osm_kind': demande.osmObjectType, 'osm_id': demande.osmId}) }}" title="Éditer la place">
{{ demande.placeUuid }}
</a>
{% else %}
{{ demande.placeUuid }}
{% endif %}
{% else %}
{{ demande.placeUuid }}
{% endif %}
</td>
<td>{{ demande.lastContactAttempt ? demande.lastContactAttempt|date('Y-m-d H:i:s') : '' }}</td>
<td>
<div class="btn-group" role="group">
@ -140,7 +170,7 @@
</tr>
{% else %}
<tr>
<td colspan="8" class="text-center">Aucune demande trouvée</td>
<td colspan="9" class="text-center">Aucune demande trouvée</td>
</tr>
{% endfor %}
</tbody>