Add function dashboard added

This commit is contained in:
gavinvanderbij
2025-05-14 12:10:10 +02:00
parent 351e6d2cd5
commit c9eb18fd0b
6 changed files with 73 additions and 8 deletions

View File

@@ -15,13 +15,13 @@
</tr>
</thead>
<tbody>
{% for log in recent_logs %}
{% for form in recent_logs %}
<tr>
<td><small class="fs-6">{{ log.timestamp.strftime('%H:%M:%S') }}</small></td>
<td><small class="fs-6">{{ log.action }}</small></td>
<td><small class="fs-6">{{ form.timestamp.strftime('%H:%M:%S') }}</small></td>
<td><small class="fs-6">{{ form.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">
{{ log.status }}
{{ form.allowed }}
</span>
</td>
</tr>