diff --git a/srv/poe_manager/app.py b/srv/poe_manager/app.py
index 3b867d9..689a13d 100644
--- a/srv/poe_manager/app.py
+++ b/srv/poe_manager/app.py
@@ -86,7 +86,8 @@ def logout():
def index():
conn = sqlite3.connect("sqlite.db")
c = conn.cursor()
- c.execute("SELECT mac, name FROM devices")
+ # is_active mit abfragen
+ c.execute("SELECT mac, name, is_active FROM devices")
devices = c.fetchall()
conn.close()
diff --git a/srv/poe_manager/sqlite.db b/srv/poe_manager/sqlite.db
index 5b21479..e52fe28 100644
Binary files a/srv/poe_manager/sqlite.db and b/srv/poe_manager/sqlite.db differ
diff --git a/srv/poe_manager/static/css/style.css b/srv/poe_manager/static/css/style.css
index 2ad9bdf..997de8a 100644
--- a/srv/poe_manager/static/css/style.css
+++ b/srv/poe_manager/static/css/style.css
@@ -117,13 +117,14 @@ pre {
}
.custom-table .col-ip {
- width: 120px; /* IP-Adresse schmaler */
+ width: 140px; /* IP-Adresse schmaler */
}
.custom-table .col-mac {
- width: 120px; /* MAC-Adresse schmaler */
+ width: 140px; /* MAC-Adresse schmaler */
}
+
/* Checkbox sichtbar auch bei disabled */
.checkbox-visible:disabled {
opacity: 1; /* nicht ausgegraut */
@@ -145,7 +146,7 @@ label.text-white {
}
.custom-actions {
- gap: 0.5rem; /* horizontaler Abstand zwischen Buttons */
- margin: auto 0;
+ margin: auto 0;
background: #fff;
}
+
diff --git a/srv/poe_manager/templates/index.html b/srv/poe_manager/templates/index.html
index 2e8f299..0ef9f3d 100644
--- a/srv/poe_manager/templates/index.html
+++ b/srv/poe_manager/templates/index.html
@@ -8,8 +8,16 @@
-
- {% if status[d[0]] %}{{ status[d[0]]|capitalize }}{% else %}unbekannt{% endif %}
+
+ {% if d[2] == 0 %}
+ Deaktiviert
+ {% else %}
+ {% if status[d[0]] %}{{ status[d[0]]|capitalize }}{% else %}Unbekannt{% endif %}
+ {% endif %}
diff --git a/srv/poe_manager/templates/switche.html b/srv/poe_manager/templates/switche.html
index 6f106e9..a98ed81 100644
--- a/srv/poe_manager/templates/switche.html
+++ b/srv/poe_manager/templates/switche.html
@@ -7,20 +7,21 @@