functionele logs toegevoegd in seed.py AT

This commit is contained in:
Anh-Thy04
2025-05-27 16:01:19 +02:00
parent 8c0877d7eb
commit 42ea35bd47
3 changed files with 13 additions and 7 deletions

View File

@@ -23,13 +23,13 @@
</tr>
</thead>
<tbody>
{% for form in recent_logs %}
{% for log in logs %}
<tr>
<td><small class="fs-6">{{ form.timestamp.strftime('%H:%M:%S') }}</small></td>
<td><small class="fs-6">{{ plate.plate }}</small></td>
<td><small class="fs-6">{{ log.dateLogged.strftime('%H:%M:%S') }}</small></td>
<td><small class="fs-6">{{ log.plate }}</small></td>
<td>
<span class="badge {% if log.status == 'success' %}bg-success{% elif log.status == 'warning' %}bg-warning{% elif log.status == 'error' %}bg-danger{% else %}bg-secondary{% endif %} fs-6">
{{ form.allowed }}
{{ log.allowed }}
</span>
</td>
</tr>