diff options
author | Steven Barth <steven@midlink.org> | 2008-08-14 14:51:06 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-08-14 14:51:06 +0000 |
commit | 2c09564d762b692d970a531cca58eb52ba3807e7 (patch) | |
tree | 4d14c0d86e3cad8a6fcb9e5a39c104a0e80646e4 /applications/luci-fw | |
parent | 8c246e81746fac0fc0ff07266058d4ace5acdd55 (diff) |
modules/admin-core: Added several cross-references to relevant configuration pages
Diffstat (limited to 'applications/luci-fw')
-rw-r--r-- | applications/luci-fw/luasrc/model/cbi/luci_fw/general.lua | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/applications/luci-fw/luasrc/model/cbi/luci_fw/general.lua b/applications/luci-fw/luasrc/model/cbi/luci_fw/general.lua index 1a765abb7..3ef3275ca 100644 --- a/applications/luci-fw/luasrc/model/cbi/luci_fw/general.lua +++ b/applications/luci-fw/luasrc/model/cbi/luci_fw/general.lua @@ -11,6 +11,7 @@ You may obtain a copy of the License at $Id$ ]]-- +require("luci.tools.webadmin") m = Map("firewall", translate("fw_fw"), translate("fw_fw1")) s = m:section(TypedSection, "defaults") @@ -52,12 +53,7 @@ s:option(Flag, "masq") net = s:option(MultiValue, "network") net.widget = "select" net.rmempty = true -luci.model.uci.foreach("network", "interface", - function (section) - if section[".name"] ~= "loopback" then - net:value(section[".name"]) - end - end) +luci.tools.webadmin.cbi_add_networks(net) function net.cfgvalue(self, section) local value = MultiValue.cfgvalue(self, section) |