fe4d2c3ee8bf147ae1ff7e5ebc77b5803d56e532
[project/luci.git] / applications / luci-splash / src / model / cbi / splash / splash.lua
1 -- ToDo: Translate, Add descriptions and help texts
2 require("ffluci.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.addremove = true
11 s.anonymous = true
12
13 iface = s:option(ListValue, "network", "Schnittstelle")
14 for k, v in pairs(ffluci.model.uci.sections("network")) do
15         if v[".type"] == "interface" and k ~= "loopback" then
16                 iface:value(k)
17         end
18 end
19
20 s = m:section(TypedSection, "whitelist", "Automatische Freigabe")
21 s.addremove = true
22 s.anonymous = true
23 s:option(Value, "mac", "MAC-Adresse")
24
25 s = m:section(TypedSection, "blacklist", "Automatische Sperrung")
26 s.addremove = true
27 s.anonymous = true
28 s:option(Value, "mac", "MAC-Adresse")
29         
30 return m