dev #1
@@ -29,10 +29,7 @@
|
|||||||
<td>{{ d['port'] }}</td>
|
<td>{{ d['port'] }}</td>
|
||||||
<td>{{ d['switch_hostname'] or '-' }}</td>
|
<td>{{ d['switch_hostname'] or '-' }}</td>
|
||||||
<td>
|
<td>
|
||||||
<form method="post" style="display:inline;">
|
<form method="post" action="{{ url_for('toggle_device', mac=d['mac']) }}" 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 }}">
|
|
||||||
<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'] %}Aktiv{% else %}Inaktiv{% endif %}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user