srv/poe_manager/templates/devices.html aktualisiert

This commit is contained in:
2025-10-08 21:57:43 +02:00
parent 25d778086d
commit 1e94ac6dde

View File

@@ -28,13 +28,13 @@
<td>{{ d['mac'] }}</td>
<td>{{ d['port'] }}</td>
<td>{{ d['switch_hostname'] or '-' }}</td>
{% if current_user.is_admin %}
<td>
<button class="btn btn-sm {% if d['is_active'] %}btn-success{% else %}btn-secondary{% endif %}"
onclick="toggleDevice('{{ d['mac'] }}', this)">
{% if d['is_active'] %}Deaktivieren{% else %}Aktivieren{% endif %}
</button>
</td>
{% if current_user.is_admin %}
<td>
<!-- Bearbeiten Modal -->
<button class="btn btn-secondary btn-sm button login white" data-bs-toggle="modal" data-bs-target="#editDeviceModal"