* Added admin > index > luci (FFLuCI configuration page)
authorSteven Barth <steven@midlink.org>
Mon, 31 Mar 2008 07:25:38 +0000 (07:25 +0000)
committerSteven Barth <steven@midlink.org>
Mon, 31 Mar 2008 07:25:38 +0000 (07:25 +0000)
* Added admin > network > routes (static routes configuration page)

src/ffluci/controller/admin/index.lua
src/ffluci/controller/admin/network.lua
src/ffluci/model/cbi/admin_index/luci.lua [new file with mode: 0644]
src/ffluci/model/cbi/admin_network/routes.lua [new file with mode: 0644]

index d57e3fd9f44bfcd5374e271e396f8a3587259b24..43e680a2368f38dacaea5247a9ee6298bf597674 100644 (file)
@@ -4,6 +4,7 @@ menu = {
        descr   = "Übersicht",
        order   = 10,
        entries = {
+               {action = "luci", descr = "FFLuCI"},
                {action = "contact", descr = "Kontakt"}
        }
 }
\ No newline at end of file
index 534193b4db77f0254527ab0166674a282480ae6a..5ffe6417553f5df68c8db6a0c4a30984ee263f90 100644 (file)
@@ -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 (file)
index 0000000..ec6c222
--- /dev/null
@@ -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 (file)
index 0000000..5a5f780
--- /dev/null
@@ -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