* Added admin > index > luci (FFLuCI configuration page)
* Added admin > network > routes (static routes configuration page)
This commit is contained in:
parent
8474dc767e
commit
be1cfcef38
4 changed files with 32 additions and 0 deletions
|
@ -4,6 +4,7 @@ menu = {
|
|||
descr = "Übersicht",
|
||||
order = 10,
|
||||
entries = {
|
||||
{action = "luci", descr = "FFLuCI"},
|
||||
{action = "contact", descr = "Kontakt"}
|
||||
}
|
||||
}
|
|
@ -7,5 +7,6 @@ menu = {
|
|||
{action = "vlan", descr = "Switch"},
|
||||
{action = "ifaces", descr = "Schnittstellen"},
|
||||
{action = "ptp", descr = "PPPoE / PPTP"},
|
||||
{action = "routes", descr = "Statische Routen"},
|
||||
}
|
||||
}
|
14
src/ffluci/model/cbi/admin_index/luci.lua
Normal file
14
src/ffluci/model/cbi/admin_index/luci.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
-- ToDo: Translate, Add descriptions and help texts
|
||||
m = Map("luci", "FFLuCI")
|
||||
|
||||
c = m:section(NamedSection, "main", "core", "Allgemein")
|
||||
c:option(Value, "lang", "Sprache")
|
||||
c:option(Value, "mediaurlbase", "Mediaverzeichnis")
|
||||
|
||||
p = m:section(NamedSection, "category_privileges", "core", "Kategorieprivilegien")
|
||||
p.dynamic = true
|
||||
|
||||
u = m:section(NamedSection, "uci_oncommit", "event", "UCI-Befehle beim Anwenden")
|
||||
u.dynamic = true
|
||||
|
||||
return m
|
16
src/ffluci/model/cbi/admin_network/routes.lua
Normal file
16
src/ffluci/model/cbi/admin_network/routes.lua
Normal file
|
@ -0,0 +1,16 @@
|
|||
-- ToDo: Translate, Add descriptions and help texts
|
||||
m = Map("network", "Statische Routen")
|
||||
|
||||
s = m:section(TypedSection, "route")
|
||||
s.addremove = true
|
||||
s.anonymous = true
|
||||
|
||||
s:option(Value, "interface", "Schnittstelle")
|
||||
|
||||
s:option(Value, "target", "Ziel", "Host-IP oder Netzwerk")
|
||||
|
||||
s:option(Value, "netmask", "Netzmaske", "falls Ziel ein Netzwerk ist").rmemepty = true
|
||||
|
||||
s:option(Value, "gateway", "Gateway")
|
||||
|
||||
return m
|
Loading…
Reference in a new issue