add sortable tables, orange for no named places

This commit is contained in:
Tykayn 2025-06-01 19:04:11 +02:00 committed by tykayn
parent 344e71d38f
commit b60b527ee1
4 changed files with 21 additions and 20 deletions

View file

@ -41,7 +41,13 @@
{% for commerce in stats.places %}
<tr>
<td style="background-color: {{ commerce.hasAddress() ? 'yellowgreen' : 'transparent' }};">
<a href="{{ path('app_admin_commerce', {'id': commerce.id}) }}"> {% if commerce.name |length %} {{ commerce.name |slice(0, 20) }}... {% else %} (lieu sans nom) {% endif %}</a>
<a href="{{ path('app_admin_commerce', {'id': commerce.id}) }}">
{% if not commerce.name |length %}
<span class="no-name">
(lieu sans nom)
</span>
{% endif %}
{% if commerce.name |length > 50 %} {{ commerce.name |slice(0, 50) }}... {% else %} {{ commerce.name }} {% endif %}</a>
</td>
<td style="background-color: {{ commerce.hasAddress() ? 'yellowgreen' : 'transparent' }};">{{ commerce.address }}</td>