diff options
-rw-r--r-- | src/ffluci/controller/admin/index.lua | 1 | ||||
-rw-r--r-- | src/ffluci/controller/admin/network.lua | 1 | ||||
-rw-r--r-- | src/ffluci/model/cbi/admin_index/luci.lua | 14 | ||||
-rw-r--r-- | src/ffluci/model/cbi/admin_network/routes.lua | 16 |
4 files changed, 32 insertions, 0 deletions
diff --git a/src/ffluci/controller/admin/index.lua b/src/ffluci/controller/admin/index.lua index d57e3fd9f4..43e680a236 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 534193b4db..5ffe641755 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 0000000000..ec6c2228b9 --- /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 0000000000..5a5f780070 --- /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 |