modules/admin-{mini,full}: display client hostnames in lease overview

This commit is contained in:
Jo-Philipp Wich 2010-04-04 17:28:15 +00:00
parent 5fa8fd228e
commit 08ceafc2e9
2 changed files with 12 additions and 0 deletions

View file

@ -38,6 +38,13 @@ end
if leases then if leases then
v = m2:section(Table, leases, translate("Active Leases")) v = m2:section(Table, leases, translate("Active Leases"))
name = v:option(DummyValue, 4, translate("Hostname"))
function name.cfgvalue(self, ...)
local value = DummyValue.cfgvalue(self, ...)
return (value == "*") and "?" or value
end
ip = v:option(DummyValue, 3, translate("<abbr title=\"Internet Protocol Version 4\">IPv4</abbr>-Address")) ip = v:option(DummyValue, 3, translate("<abbr title=\"Internet Protocol Version 4\">IPv4</abbr>-Address"))
mac = v:option(DummyValue, 2, translate("<abbr title=\"Media Access Control\">MAC</abbr>-Address")) mac = v:option(DummyValue, 2, translate("<abbr title=\"Media Access Control\">MAC</abbr>-Address"))

View file

@ -75,6 +75,11 @@ end
if leases then if leases then
v = m:section(Table, leases, translate("Active Leases")) v = m:section(Table, leases, translate("Active Leases"))
name = v:option(DummyValue, 4, translate("Hostname"))
function name.cfgvalue(self, ...)
local value = DummyValue.cfgvalue(self, ...)
return (value == "*") and "?" or value
end
ip = v:option(DummyValue, 3, translate("<abbr title=\"Internet Protocol Version 4\">IPv4</abbr>-Address")) ip = v:option(DummyValue, 3, translate("<abbr title=\"Internet Protocol Version 4\">IPv4</abbr>-Address"))
mac = v:option(DummyValue, 2, translate("<abbr title=\"Media Access Control\">MAC</abbr>-Address")) mac = v:option(DummyValue, 2, translate("<abbr title=\"Media Access Control\">MAC</abbr>-Address"))
ltime = v:option(DummyValue, 1, translate("Leasetime remaining")) ltime = v:option(DummyValue, 1, translate("Leasetime remaining"))