From 3031f7583646a3bc27a7f03d7874e0553b3cdb59 Mon Sep 17 00:00:00 2001 From: Jose Date: Sun, 13 Apr 2025 20:33:15 +0200 Subject: [PATCH] Moved buttons to wifi.html modified: data/www/index.html modified: data/www/wifi.html --- data/www/index.html | 18 +----------------- data/www/wifi.html | 35 +++++++++++++++++++++++++++++++---- 2 files changed, 32 insertions(+), 21 deletions(-) diff --git a/data/www/index.html b/data/www/index.html index 6034838..0e2464d 100644 --- a/data/www/index.html +++ b/data/www/index.html @@ -34,9 +34,7 @@ overflow-y: auto; } .danger-zone { - margin-top: auto; - padding: 20px; - border-top: 1px solid #34495e; + display: none; /* Hide the danger zone since it's no longer needed */ } .danger-btn { background: #e74c3c; @@ -59,11 +57,6 @@ - -
-

Danger Zone

- -
@@ -86,15 +79,6 @@ }); }); - function factoryReset() { - if(confirm('Are you sure you want to perform a factory reset? This will erase all settings.')) { - fetch('/api/system/factory-reset', { method: 'POST' }) - .then(response => response.json()) - .then(data => alert(data.message)) - .catch(error => alert('Error: ' + error)); - } - } - // Load dashboard by default document.getElementById('contentFrame').src = pages.dashboard; diff --git a/data/www/wifi.html b/data/www/wifi.html index 05b72b3..cbc5edc 100644 --- a/data/www/wifi.html +++ b/data/www/wifi.html @@ -34,11 +34,17 @@ border-radius: 4px; cursor: pointer; width: 100%; - margin: 5px 0; + margin: 10px 0; } .danger-btn:hover { background: #c0392b; } + .danger-section { + margin-bottom: 20px; + } + .danger-section h4 { + margin-bottom: 10px; + } @@ -50,9 +56,15 @@
-

WiFi Controls

- - +
+

WiFi Controls

+ + +
+
+

System Controls

+ +