From 5c90a1c09fa1c0f1e859372242d70a5a8d5ce6a5 Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Fri, 29 Mar 2024 15:42:00 -0700 Subject: [PATCH] Tweak setup page layout (#1139) * Tweak setup page layout * Move map --- files/www/cgi-bin/setup | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/files/www/cgi-bin/setup b/files/www/cgi-bin/setup index 8ccb9a93..e4c2e2b8 100755 --- a/files/www/cgi-bin/setup +++ b/files/www/cgi-bin/setup @@ -1252,10 +1252,9 @@ else hidden[#hidden + 1] = "" end -html.print("
") - local APokay = nixio.fs.stat("/usr/sbin/wpad") if APokay and ((phycount > 1 and (wifi_enable ~= "1" or wifi3_enable ~= "1")) or (phycount == 1 and wifi_enable ~= "1" and wifi3_enable ~= "1") and not M39model) then + html.print("
") -- lan ap shows as an option -- determine hardware options and set band ahd channels accordingly if phycount == 1 then @@ -1399,12 +1398,11 @@ end html.print("DNS 1") html.print("DNS 2") -html.print("
") - -- wan wifi client if APokay and ((phycount > 1 and (wifi_enable ~= "1" or wifi2_enable ~= "1")) or (phycount == 1 and wifi_enable ~= "1" and wifi2_enable ~= "1")) and not M39model then -- wifi client shows as an option -- determine hardware options and set band accordingly + html.print("
") if phycount == 1 then local rc3 = os.execute("iw phy phy0 info | grep -q '5180 MHz' > /dev/null") @@ -1473,6 +1471,7 @@ html.print("
") -- Location and antenna settings html.print("") html.print("") +html.print("") html.print("") html.print("") html.print("") +html.print("") + if wifi_enable == "1" then + html.print("") + html.print("") local ants = aredn.hardware.get_antennas(wifi_intf) local antsx = aredn.hardware.get_antennas_aux(wifi_intf) local changeh = true @@ -1525,7 +1528,7 @@ if wifi_enable == "1" then end html.print("") end -html.print("") +html.print("") html.print("
Location Settings

Latitude") @@ -1483,7 +1482,11 @@ html.print(" 
LongitudeGrid Square
Antenna Settings (optional)

Height m


Timezone