summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-03-31 07:25:38 +0000
committerSteven Barth <steven@midlink.org>2008-03-31 07:25:38 +0000
commitbe1cfcef389a6b673b3a730faa1c4fdb4635f85d (patch)
treedd0ef2cdc8e99966ba3ae47b056147b3d67ddaf1 /src
parent8474dc767ebf565566565c2c8d9def70bda55cc9 (diff)
* Added admin > index > luci (FFLuCI configuration page)
* Added admin > network > routes (static routes configuration page)
Diffstat (limited to 'src')
-rw-r--r--src/ffluci/controller/admin/index.lua1
-rw-r--r--src/ffluci/controller/admin/network.lua1
-rw-r--r--src/ffluci/model/cbi/admin_index/luci.lua14
-rw-r--r--src/ffluci/model/cbi/admin_network/routes.lua16
4 files changed, 32 insertions, 0 deletions
diff --git a/src/ffluci/controller/admin/index.lua b/src/ffluci/controller/admin/index.lua
index d57e3fd9f..43e680a23 100644
--- a/src/ffluci/controller/admin/index.lua
+++ b/src/ffluci/controller/admin/index.lua
@@ -4,6 +4,7 @@ menu = {
descr = "Übersicht",
order = 10,
entries = {
+ {action = "luci", descr = "FFLuCI"},
{action = "contact", descr = "Kontakt"}
}
} \ No newline at end of file
diff --git a/src/ffluci/controller/admin/network.lua b/src/ffluci/controller/admin/network.lua
index 534193b4d..5ffe64175 100644
--- a/src/ffluci/controller/admin/network.lua
+++ b/src/ffluci/controller/admin/network.lua
@@ -7,5 +7,6 @@ menu = {
{action = "vlan", descr = "Switch"},
{action = "ifaces", descr = "Schnittstellen"},
{action = "ptp", descr = "PPPoE / PPTP"},
+ {action = "routes", descr = "Statische Routen"},
}
} \ No newline at end of file
diff --git a/src/ffluci/model/cbi/admin_index/luci.lua b/src/ffluci/model/cbi/admin_index/luci.lua
new file mode 100644
index 000000000..ec6c2228b
--- /dev/null
+++ b/src/ffluci/model/cbi/admin_index/luci.lua
@@ -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 \ No newline at end of file
diff --git a/src/ffluci/model/cbi/admin_network/routes.lua b/src/ffluci/model/cbi/admin_network/routes.lua
new file mode 100644
index 000000000..5a5f78007
--- /dev/null
+++ b/src/ffluci/model/cbi/admin_network/routes.lua
@@ -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 \ No newline at end of file