diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-10-31 21:09:02 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-10-31 21:09:02 +0000 |
commit | 4ef4776c9acd871825a9df3731a81006f7b8014d (patch) | |
tree | d6af39531588fc61a0414cf4f7fb983ecabe371b /applications/luci-fw/luasrc | |
parent | 400831c9368bb5990da75bdff36fce9e324529f1 (diff) |
all: various i18n realted fixes
Diffstat (limited to 'applications/luci-fw/luasrc')
-rw-r--r-- | applications/luci-fw/luasrc/model/cbi/luci_fw/zones.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/applications/luci-fw/luasrc/model/cbi/luci_fw/zones.lua b/applications/luci-fw/luasrc/model/cbi/luci_fw/zones.lua index d9f5ce6d89..7dc48774fc 100644 --- a/applications/luci-fw/luasrc/model/cbi/luci_fw/zones.lua +++ b/applications/luci-fw/luasrc/model/cbi/luci_fw/zones.lua @@ -11,9 +11,16 @@ You may obtain a copy of the License at $Id$ ]]-- + +local nw = require "luci.model.network" +local fw = require "luci.model.firewall" + require("luci.tools.webadmin") m = Map("firewall", translate("Firewall"), translate("The firewall creates zones over your network interfaces to control network traffic flow.")) +fw.init(m.uci) +nw.init(m.uci) + s = m:section(TypedSection, "defaults") s.anonymous = true @@ -59,7 +66,8 @@ end s:option(Flag, "masq") net = s:option(MultiValue, "network") -net.widget = "select" +net.template = "cbi/network_netlist" +net.widget = "checkbox" net.rmempty = true luci.tools.webadmin.cbi_add_networks(net) |