dev #1

Merged
alientim merged 145 commits from dev into main 2025-10-12 13:44:14 +02:00
Showing only changes of commit 83b4b5a32c - Show all commits

View File

@@ -29,10 +29,7 @@
<td>{{ d['port'] }}</td>
<td>{{ d['switch_hostname'] or '-' }}</td>
<td>
<form method="post" style="display:inline;">
<input type="hidden" name="edit_device" value="1">
<input type="hidden" name="old_mac" value="{{ d['mac'] }}">
<input type="hidden" name="is_active" value="{{ 1 if not d['is_active'] else 0 }}">
<form method="post" action="{{ url_for('toggle_device', mac=d['mac']) }}" style="display:inline;">
<button class="btn btn-sm {% if d['is_active'] %}btn-success{% else %}btn-secondary{% endif %}" type="submit">
{% if d['is_active'] %}Aktiv{% else %}Inaktiv{% endif %}
</button>