summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-10-03 16:55:06 +0000
committerSteven Barth <steven@midlink.org>2008-10-03 16:55:06 +0000
commit741dd0bcd3fbd342c79a689721f793c892dcfc5c (patch)
tree128ce8496e59a354555a22c9d4a8eb29540fd6c8 /modules
parent6fb6f2c5296094d56a560325579147ceddbef2c5 (diff)
Added several backreference to Overview pages
Diffstat (limited to 'modules')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua4
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua5
2 files changed, 9 insertions, 0 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua b/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua
index 5470b8a24..25336175c 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua
@@ -19,6 +19,10 @@ m = Map("network", translate("interfaces"), translate("a_n_ifaces1"))
s = m:section(NamedSection, arg[1], "interface")
s.addremove = true
+back = s:option(DummyValue, translate("overview"))
+back.value = ""
+back.titleref = luci.dispatcher.build_url("admin", "network", "network")
+
p = s:option(ListValue, "proto", translate("protocol"))
p:value("static", translate("static"))
p:value("dhcp", "DHCP")
diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
index d1e8917bf..4f2ae17f8 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
@@ -19,6 +19,11 @@ m = Map("wireless", translate("networks"), translate("a_w_networks1"))
s = m:section(NamedSection, arg[1], "wifi-device", translate("device") .. " " .. arg[1])
--s.addremove = true
+back = s:option(DummyValue, translate("overview"))
+back.value = ""
+back.titleref = luci.dispatcher.build_url("admin", "network", "wireless")
+
+
en = s:option(Flag, "disabled", translate("enable"))
en.enabled = "0"
en.disabled = "1"