From 4ef4776c9acd871825a9df3731a81006f7b8014d Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 31 Oct 2009 21:09:02 +0000 Subject: all: various i18n realted fixes --- applications/luci-fw/luasrc/model/cbi/luci_fw/zones.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'applications/luci-fw') 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 d9f5ce6d8..7dc48774f 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) -- cgit v1.2.3