From eb631e4819f32a66b3606000698be6a99eec2c2c Mon Sep 17 00:00:00 2001 From: Steve <69524416+ab7pa@users.noreply.github.com> Date: Fri, 4 Nov 2022 19:54:04 -0700 Subject: [PATCH] set min field widths on ports page (#544) --- files/www/cgi-bin/ports | 65 ++++++++++++++++++++++------------------- 1 file changed, 35 insertions(+), 30 deletions(-) diff --git a/files/www/cgi-bin/ports b/files/www/cgi-bin/ports index d24fb5d9..f88a0eca 100755 --- a/files/www/cgi-bin/ports +++ b/files/www/cgi-bin/ports @@ -148,7 +148,7 @@ local macs = {} if config ~= "mesh" or nixio.fs.stat("/tmp/reboot-required") then http_header() html.header(node .. " setup", true) - html.print("
") + html.print("
") +html.print("
") html.alert_banner() navbar() html.print("

") @@ -852,9 +852,9 @@ html.header(node .. " setup", true) html.print("
") html.alert_banner() html.print("
") -html.print("") +html.print("
") html.print("") -- control buttons @@ -916,7 +916,7 @@ function print_reservations() if val == "_add" and #list > 1 then html.print("") end - html.print("") + html.print("") html.print("") - html.print("") + html.print("") if dmz_mode ~= 0 then if noprop == "#NOPROP" then html.print("") @@ -989,10 +989,14 @@ function print_reservations() end function print_forwarding() - html.print("
") -navbar(); +navbar() html.print("
") - html.print("") - html.print("") - html.print("") + html.print("
Port Forwarding
 InterfaceTypeOutside
Port
LAN IPLAN
Port
 
") + html.print("") + html.print("") + + html.print("") + html.print("") + html.print("") + html.print("") local list = {} for i = 1,parms.port_num @@ -1009,11 +1013,11 @@ function print_forwarding() end if val == "_add" and #list > 1 then - html.print("") + html.print("") end - html.print("") - hide("") + html.print("") + hide("") -- port forwarding settings html.print("") - html.print("") + html.print("") html.print("") - html.print("") - html.print("") + html.print("") + html.print("") end -- dmz server for nat mode @@ -1154,7 +1158,7 @@ function print_services() html.print("") end html.print("") - html.print("") + html.print("") html.print("") +html.print("
Port Forwarding
InterfaceTypeOutside PortLAN IPLAN Port 
 
  
") - html.print("://" .. _host .. "") end - html.print(":: / / ") end -html.print("
") -html.print("") -html.print("") -html.print("") -html.print("
") +html.print("
") +html.print("") -html.print("") +html.print("") -html.print("
") if dmz_mode ~= 0 then print_reservations() else print_forwarding() end html.print("     ") +html.print("     ") print_services() html.print("
 

") +html.print("") +html.print("") html.print("") html.print("") -html.print("") html.print("

") if dmz_mode ~= 0 then print_forwarding() @@ -1308,10 +1311,10 @@ else end html.print("          ") print_aliases() -html.print("
") +html.print("
") hide("") hide("") @@ -1323,7 +1326,9 @@ do html.print(h) end -html.print("
") +html.print("
") html.footer() +html.print("
") html.print("") http_footer()