projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add extended dispatching targets, optimize dispatching behaviour
[project/luci.git]
/
applications
/
luci-fw
/
luasrc
/
model
/
cbi
/
luci_fw
/
trule.lua
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
3d1a041
..
f860bff
100644
(file)
--- a/
applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua
+++ b/
applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua
@@
-16,8
+16,9
@@
m = Map("firewall", translate("firewall_rule"), translate("firewall_rule_desc"))
s = m:section(NamedSection, arg[1], "rule", "")
s.anonymous = true
s = m:section(NamedSection, arg[1], "rule", "")
s.anonymous = true
+s.addremove = false
-back = s:option(DummyValue, translate("overview"))
+back = s:option(DummyValue,
"_overview",
translate("overview"))
back.value = ""
back.titleref = luci.dispatcher.build_url("admin", "network", "firewall", "traffic")
back.value = ""
back.titleref = luci.dispatcher.build_url("admin", "network", "firewall", "traffic")
@@
-25,12
+26,12
@@
back.titleref = luci.dispatcher.build_url("admin", "network", "firewall", "traff
name = s:option(Value, "_name", translate("name")..translate("cbi_optional"))
name.rmempty = true
name = s:option(Value, "_name", translate("name")..translate("cbi_optional"))
name.rmempty = true
-iface = s:option(ListValue, "src", translate("f
irewall_rule
_src"))
+iface = s:option(ListValue, "src", translate("f
w
_src"))
iface.rmempty = true
iface.rmempty = true
-oface = s:option(ListValue, "dest", translate("f
irewall_rule
_dest"))
-oface:value("")
-oface.
optional
= true
+oface = s:option(ListValue, "dest", translate("f
w
_dest"))
+oface:value(""
, translate("device", "device")
)
+oface.
rmempty
= true
luci.model.uci.cursor():foreach("firewall", "zone",
function (section)
luci.model.uci.cursor():foreach("firewall", "zone",
function (section)