497d394ee246b78a04e852419c0b1e449b9b8178
[project/luci.git] / module / admin-core / src / model / cbi / admin_network / 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(TypedSection, "iface", "Schnittstellen")
7 s.addremove = true
8 s.anonymous = true
9
10 iface = s:option(ListValue, "network", "Schnittstelle")
11 for k, v in pairs(ffluci.model.uci.show("network").network) do
12 if v[".type"] == "interface" and k ~= "loopback" then
13 iface:value(k)
14 end
15 end
16
17 s = m:section(TypedSection, "whitelist", "Automatische Freigabe")
18 s.addremove = true
19 s.anonymous = true
20 s:option(Value, "mac", "MAC-Adresse")
21
22 s = m:section(TypedSection, "blacklist", "Automatische Sperrung")
23 s.addremove = true
24 s.anonymous = true
25 s:option(Value, "mac", "MAC-Adresse")
26
27 return m