summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-fw/luasrc
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 /applications/luci-fw/luasrc
parent6fb6f2c5296094d56a560325579147ceddbef2c5 (diff)
Added several backreference to Overview pages
Diffstat (limited to 'applications/luci-fw/luasrc')
-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
2 files changed, 9 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 795867616..f21d36a76 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, 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 3712196ff..3d1a041f4 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, 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