ed5cdc181a8aae61c94c0f759f54cb0e2d67776b
[project/luci.git] / applications / luci-splash / luasrc / model / cbi / splash / splash.lua
1 -- ToDo: Translate, Add descriptions and help texts
2 require("luci.model.uci")
3
4 m = Map("luci_splash", "Client-Splash", [[Client-Splash ist das Freifunk Hotspot-Authentifizierungs-System.]])
5
6 s = m:section(NamedSection, "general", "core", "Allgemein")
7 s:option(Value, "leasetime", "Freigabezeit", "h")
8
9 s = m:section(TypedSection, "iface", "Schnittstellen")
10 s.template = "cbi/tblsection"
11 s.addremove = true
12 s.anonymous = true
13
14 iface = s:option(ListValue, "zone", "Firewallzone")
15 luci.model.uci.foreach("firewall", "zone",
16         function (section)
17                 iface:value(section.name)
18         end)
19         
20 gateway = s:option(Value, "gateway", "Gateway")
21
22 s = m:section(TypedSection, "whitelist", "Automatische Freigabe")
23 s.template = "cbi/tblsection"
24 s.addremove = true
25 s.anonymous = true
26 s:option(Value, "mac", "MAC-Adresse")
27
28 s = m:section(TypedSection, "blacklist", "Automatische Sperrung")
29 s.template = "cbi/tblsection"
30 s.addremove = true
31 s.anonymous = true
32 s:option(Value, "mac", "MAC-Adresse")
33         
34 return m