dev #1

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

View File

@@ -16,7 +16,7 @@
<th>MAC-Adresse</th> <th>MAC-Adresse</th>
<th>Port</th> <th>Port</th>
<th>Switch</th> <th>Switch</th>
<th>Aktiv</th> <th>Status</th>
{% if current_user.is_admin %}<th>Aktionen</th>{% endif %} {% if current_user.is_admin %}<th>Aktionen</th>{% endif %}
</tr> </tr>
</thead> </thead>
@@ -31,7 +31,7 @@
<td> <td>
<form method="post" action="{{ url_for('toggle_device', mac=d['mac']) }}" style="display:inline;"> <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"> <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 %} {% if d['is_active'] %}Deaktivieren{% else %}Aktivieren{% endif %}
</button> </button>
</form> </form>
</td> </td>