* Added admin > index > luci (FFLuCI configuration page)

* Added admin > network > routes (static routes configuration page)
This commit is contained in:
Steven Barth 2008-03-31 07:25:38 +00:00
parent 8474dc767e
commit be1cfcef38
4 changed files with 32 additions and 0 deletions

View file

@ -4,6 +4,7 @@ menu = {
descr = "Übersicht",
order = 10,
entries = {
{action = "luci", descr = "FFLuCI"},
{action = "contact", descr = "Kontakt"}
}
}

View file

@ -7,5 +7,6 @@ menu = {
{action = "vlan", descr = "Switch"},
{action = "ifaces", descr = "Schnittstellen"},
{action = "ptp", descr = "PPPoE / PPTP"},
{action = "routes", descr = "Statische Routen"},
}
}

View 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

View 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