diff --git a/files/www/cgi-bin/ports b/files/www/cgi-bin/ports index dab0097b..ba4efd4a 100755 --- a/files/www/cgi-bin/ports +++ b/files/www/cgi-bin/ports @@ -891,18 +891,20 @@ function print_reservations() end list[#list + 1] = "_add" + local mac_list = {} for _, val in ipairs(list) do local host = parms["dhcp" .. val .. "_host"] local ip = parms["dhcp" .. val .. "_ip"] local mac = parms["dhcp" .. val .. "_mac"]:lower() local noprop = parms["dhcp" .. val .. "_noprop"] + mac_list[mac] = true if val == "_add" and #list > 1 then html.print("") end html.print("") - html.print("") if val == "_add" then html.print("\n") end @@ -934,7 +936,7 @@ function print_reservations() if val == "_add" then html.print("dhcp_add value=Add title='Add this as a DHCP reservation'") else - html.print("dhcp" .. val .. "_del value=Del title='Remove this reservation'") + html.print("dhcp" .. val .. "_del value='Del ' title='Remove this reservation'") end html.print(">") @@ -958,8 +960,7 @@ function print_reservations() local _, mac, ip, host = line:match("(%S+)%s+(%S+)%s+(%S+)%s+(%S+)") html.print("") html.print("" .. host .. "" .. ip .. "") - html.print("" .. mac .. " ") - html.print("" .. mac .. " ") hide("") hide("") @@ -1044,7 +1045,7 @@ function print_forwarding() if val == "_add" then html.print("port_add value=Add title='Add this as a port forwarding rule'") else - html.print("port" .. val .. "_del value=Del title='Remove this rule'") + html.print("port" .. val .. "_del value='Del ' title='Remove this rule'") end html.print(">") @@ -1196,7 +1197,7 @@ function print_services() if val == "_add" then html.print("serv_add value=Add title='Add this as a service'>") else - html.print("serv" .. val .. "_del value=Del title='Remove this service'>") + html.print("serv" .. val .. "_del value='Del ' title='Remove this service'>") end local svc = string.format([[PlParam "service" "%s://%s:%s/%s|tcp|%s"]], (_link == "1" and _proto or "http"), _host, (_link == "1" and _port or "0"), _suffix, _name) if val ~= "_add" and activesvc and not activesvc[svc] then @@ -1265,7 +1266,7 @@ function print_aliases() if val == "_add" then html.print("alias_add value=Add title='Add Alias'") else - html.print("alias" .. val .. "_del value=Del title='Remove Alias'") + html.print("alias" .. val .. "_del value='Del ' title='Remove Alias'") end html.print(">") end