1 -- ToDo: Translate, Add descriptions and help texts
2 require("luci.model.uci")
4 m = Map("luci_splash", "Client-Splash", [[Client-Splash ist das Freifunk Hotspot-Authentifizierungs-System.]])
6 s = m:section(NamedSection, "general", "core", "Allgemein")
7 s:option(Value, "leasetime", "Freigabezeit", "h")
9 s = m:section(TypedSection, "iface", "Schnittstellen")
10 s.template = "cbi/tblsection"
14 local uci = luci.model.uci.cursor()
16 zone = s:option(ListValue, "zone", "Firewallzone")
17 uci:foreach("firewall", "zone",
19 zone:value(section.name)
22 iface = s:option(ListValue, "network", "Netzwerk")
23 uci:foreach("network", "interface",
25 if section[".name"] ~= "loopback" then
26 iface:value(section[".name"])
30 uci:foreach("network", "alias",
32 iface:value(section[".name"])
35 s = m:section(TypedSection, "whitelist", "Automatische Freigabe")
36 s.template = "cbi/tblsection"
39 s:option(Value, "mac", "MAC-Adresse")
41 s = m:section(TypedSection, "blacklist", "Automatische Sperrung")
42 s.template = "cbi/tblsection"
45 s:option(Value, "mac", "MAC-Adresse")