modules/admin-full, modules/admin-mini: Added eyecandy ;-)
This commit is contained in:
parent
ad04a82125
commit
84d6646bb4
3 changed files with 20 additions and 5 deletions
|
@ -58,8 +58,13 @@ s.addremove = true
|
|||
s.anonymous = true
|
||||
s.template = "cbi/tblsection"
|
||||
|
||||
s:option(Value, "macaddr", translate("macaddress"))
|
||||
s:option(Value, "ipaddr", translate("ipaddress"))
|
||||
mac = s:option(Value, "macaddr", translate("macaddress"))
|
||||
ip = s:option(Value, "ipaddr", translate("ipaddress"))
|
||||
for i, dataset in ipairs(luci.sys.net.arptable()) do
|
||||
ip:value(dataset["IP address"])
|
||||
mac:value(dataset["HW address"],
|
||||
dataset["HW address"] .. " (" .. dataset["IP address"] .. ")")
|
||||
end
|
||||
|
||||
|
||||
return m, m2
|
||||
|
|
|
@ -59,7 +59,12 @@ s.addremove = true
|
|||
s.anonymous = true
|
||||
s.template = "cbi/tblsection"
|
||||
|
||||
s:option(Value, "macaddr", translate("macaddress"))
|
||||
s:option(Value, "ipaddr", translate("ipaddress"))
|
||||
mac = s:option(Value, "macaddr", translate("macaddress"))
|
||||
ip = s:option(Value, "ipaddr", translate("ipaddress"))
|
||||
for i, dataset in ipairs(luci.sys.net.arptable()) do
|
||||
ip:value(dataset["IP address"])
|
||||
mac:value(dataset["HW address"],
|
||||
dataset["HW address"] .. " (" .. dataset["IP address"] .. ")")
|
||||
end
|
||||
|
||||
return m, m2
|
|
@ -16,7 +16,12 @@ m = Map("network", "Network")
|
|||
|
||||
s = m:section(NamedSection, "lan", "interface", translate("m_n_local"))
|
||||
s:option(Value, "ipaddr", translate("ipaddress"))
|
||||
s:option(Value, "netmask", translate("netmask"))
|
||||
|
||||
nm = s:option(Value, "netmask", translate("netmask"))
|
||||
nm:value("255.255.255.0")
|
||||
nm:value("255.255.0.0")
|
||||
nm:value("255.0.0.0")
|
||||
|
||||
gw = s:option(Value, "gateway", translate("gateway") .. translate("cbi_optional"))
|
||||
gw.rmempty = true
|
||||
dns = s:option(Value, "dns", translate("dnsserver") .. translate("cbi_optional"))
|
||||
|
|
Loading…
Reference in a new issue