luci/applications/luci-splash/luasrc/model/cbi/splash/splash.lua
2008-06-05 19:16:38 +00:00

31 lines
No EOL
901 B
Lua

-- ToDo: Translate, Add descriptions and help texts
require("luci.model.uci")
m = Map("luci_splash", "Client-Splash", [[Client-Splash ist das Freifunk Hotspot-Authentifizierungs-System.]])
s = m:section(NamedSection, "general", "core", "Allgemein")
s:option(Value, "leasetime", "Freigabezeit", "h")
s = m:section(TypedSection, "iface", "Schnittstellen")
s.addremove = true
s.anonymous = true
iface = s:option(ListValue, "network", "Schnittstelle")
luci.model.uci.foreach("network", "interface",
function (section)
if section[".name"] ~= "loopback" then
iface:value(section[".name"])
end
end)
s = m:section(TypedSection, "whitelist", "Automatische Freigabe")
s.addremove = true
s.anonymous = true
s:option(Value, "mac", "MAC-Adresse")
s = m:section(TypedSection, "blacklist", "Automatische Sperrung")
s.addremove = true
s.anonymous = true
s:option(Value, "mac", "MAC-Adresse")
return m