luci/applications/luci-splash/luasrc/model/cbi/splash/splash.lua

30 lines
886 B
Lua
Raw Normal View History

-- 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.]])
2008-04-26 21:29:14 +00:00
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")
for k, v in pairs(luci.model.uci.sections("network")) do
if v[".type"] == "interface" and k ~= "loopback" then
iface:value(k)
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