summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-10-03 16:58:05 +0000
committerSteven Barth <steven@midlink.org>2008-10-03 16:58:05 +0000
commit3a450ce9bc866a11b97e8c4322aba97b7054c2e3 (patch)
tree6f2fd413f6182e5e7f84665e5c2f13b875f52ce4
parentb53da072e40cd71f17580712fbb6bb49214e43de (diff)
Backported back references
-rw-r--r--applications/luci-fw/luasrc/model/cbi/luci_fw/rrule.lua4
-rw-r--r--applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua5
-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
4 files changed, 18 insertions, 0 deletions
diff --git a/applications/luci-fw/luasrc/model/cbi/luci_fw/rrule.lua b/applications/luci-fw/luasrc/model/cbi/luci_fw/rrule.lua
index 7958676163..bf826616ac 100644
--- a/applications/luci-fw/luasrc/model/cbi/luci_fw/rrule.lua
+++ b/applications/luci-fw/luasrc/model/cbi/luci_fw/rrule.lua
@@ -20,6 +20,10 @@ m = Map("firewall", translate("fw_redirect"), translate("fw_redirect_desc"))
s = m:section(NamedSection, arg[1], "redirect", "")
s.anonymous = true
+back = s:option(DummyValue, "_overview", translate("overview"))
+back.value = ""
+back.titleref = luci.dispatcher.build_url("admin", "network", "firewall", "redirection")
+
name = s:option(Value, "_name", translate("name"))
name.rmempty = true
name.size = 10
diff --git a/applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua b/applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua
index 3712196ff8..2538c1be40 100644
--- a/applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua
+++ b/applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua
@@ -17,6 +17,11 @@ m = Map("firewall", translate("firewall_rule"), translate("firewall_rule_desc"))
s = m:section(NamedSection, arg[1], "rule", "")
s.anonymous = true
+back = s:option(DummyValue, "_overview", translate("overview"))
+back.value = ""
+back.titleref = luci.dispatcher.build_url("admin", "network", "firewall", "traffic")
+
+
name = s:option(Value, "_name", translate("name")..translate("cbi_optional"))
name.rmempty = true
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 5470b8a241..d06ad90c9e 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, "_overview", 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 b687133ced..f2454d9a35 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, "_overview", 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"