srv/poe_manager/templates/devices.html aktualisiert
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user