mirror of
https://forge.chapril.org/tykayn/osm-commerces
synced 2025-06-20 01:44:42 +02:00
56 lines
2.9 KiB
Twig
56 lines
2.9 KiB
Twig
![]() |
{% extends 'base.html.twig' %}
|
||
|
|
||
|
{% block title %}Dernières modifications{% endblock %}
|
||
|
|
||
|
{% block body %}
|
||
|
<h1>Dernières modifications</h1>
|
||
|
|
||
|
|
||
|
<table class="table table-striped table-hover table-responsive">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Nom</th>
|
||
|
<th>Tag</th>
|
||
|
<th>Email</th>
|
||
|
<th>Date de modification</th>
|
||
|
<th>Date de dernier contact</th>
|
||
|
<th>Date de dernière modification</th>
|
||
|
<th>Code postal</th>
|
||
|
<th>Actions</th>
|
||
|
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
{% for place in places %}
|
||
|
<tr>
|
||
|
|
||
|
<td>{% if place.name %}
|
||
|
<a href="{{ path('app_public_edit', {'zipcode': place.zipCode, 'name': place.name|url_encode, 'uuid': place.uuidForUrl}) }}">{{ place.name }}</a>
|
||
|
{% else %}
|
||
|
<a href="{{ path('app_public_edit', {'zipcode': place.zipCode, 'name': '?', 'uuid': place.uuidForUrl}) }}"><i class="bi bi-question-circle"></i></a>
|
||
|
{% endif %} </td>
|
||
|
<td>{{ place.mainTag }}</td>
|
||
|
<td>{{ place.email }}</td>
|
||
|
<td>{{ place.modifiedDate | date('Y-m-d H:i:s') }}</td>
|
||
|
<td>{{ place.lastContactAttemptDate | date('Y-m-d H:i:s') }}</td>
|
||
|
<td>{{ place.modifiedDate | date('Y-m-d H:i:s') }}</td>
|
||
|
<td>{{ place.zipCode }}</td>
|
||
|
<td>
|
||
|
<a href="https://www.openstreetmap.org/{{place.osmKind}}/{{ place.osmId }}" target="_blank"><i class="bi bi-globe"></i></a>
|
||
|
|
||
|
{% if place.name %}
|
||
|
<a href="{{ path('app_public_edit', {'zipcode': place.zipCode, 'name': place.name|url_encode, 'uuid': place.uuidForUrl}) }}"><i class="bi bi-pencil"></i></a>
|
||
|
{% else %}
|
||
|
<a href="{{ path('app_public_edit', {'zipcode': place.zipCode, 'name': '?', 'uuid': place.uuidForUrl}) }}"><i class="bi bi-pencil"></i></a>
|
||
|
{% endif %}
|
||
|
|
||
|
<a href="{{ path('app_admin_delete', {'id': place.id}) }}" onclick="return confirm('Êtes-vous sûr de vouloir supprimer ce lieu ?')"><i class="bi bi-trash"></i></a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
{% endblock %}
|
||
|
|