From be1cfcef389a6b673b3a730faa1c4fdb4635f85d Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Mon, 31 Mar 2008 07:25:38 +0000 Subject: [PATCH] * Added admin > index > luci (FFLuCI configuration page) * Added admin > network > routes (static routes configuration page) --- src/ffluci/controller/admin/index.lua | 1 + src/ffluci/controller/admin/network.lua | 1 + src/ffluci/model/cbi/admin_index/luci.lua | 14 ++++++++++++++ src/ffluci/model/cbi/admin_network/routes.lua | 16 ++++++++++++++++ 4 files changed, 32 insertions(+) create mode 100644 src/ffluci/model/cbi/admin_index/luci.lua create mode 100644 src/ffluci/model/cbi/admin_network/routes.lua 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 -- 2.25.1