summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-12-19 20:09:20 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-12-19 20:09:20 +0000
commit24c4cce3ae278c0511a65aded38ef83b2e49d3d4 (patch)
treec817277ab4b59dbd75fadcf45142d2af68b3e014
parent21a0fcc4c19981501e5ab87362d80f7dcb7ceeb8 (diff)
libs/web: add "any" option to firewall_zonelist widget
-rw-r--r--libs/web/luasrc/view/cbi/firewall_zonelist.htm10
1 files changed, 9 insertions, 1 deletions
diff --git a/libs/web/luasrc/view/cbi/firewall_zonelist.htm b/libs/web/luasrc/view/cbi/firewall_zonelist.htm
index a22b7905b..19ff05944 100644
--- a/libs/web/luasrc/view/cbi/firewall_zonelist.htm
+++ b/libs/web/luasrc/view/cbi/firewall_zonelist.htm
@@ -29,7 +29,15 @@
<li style="padding:0.5em">
<input class="cbi-input-radio" onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)"<%=attr("type", self.widget or "radio") .. attr("id", cbid .. "_empty") .. attr("name", cbid) .. attr("value", "") .. ifattr(checked[""], "checked", "checked")%> /> &#160;
<label<%=attr("for", cbid .. "_empty")%> style="background-color:<%=fwm.zone.get_color()%>; padding:0.5em">
- <strong><%:Device%></strong>
+ <strong><%:Device%></strong> (<%:input%>)
+ </label>
+ </li>
+ <% end %>
+ <% if self.allowany then %>
+ <li style="padding:0.5em">
+ <input class="cbi-input-radio" onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)"<%=attr("type", self.widget or "radio") .. attr("id", cbid .. "_any") .. attr("name", cbid) .. attr("value", "*") .. ifattr(checked["*"], "checked", "checked")%> /> &#160;
+ <label<%=attr("for", cbid .. "_any")%> style="background-color:<%=fwm.zone.get_color()%>; padding:0.5em">
+ <strong><%:Any zone%></strong> (<%:forward%>)
</label>
</li>
<% end %>