summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-12-20 17:51:44 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-12-20 17:51:44 +0000
commit8358175f25c1d73002af5a3ae8f9a7d4711bf228 (patch)
treecd28dd37ef7825c852450b86e37ed3d4648e9d51 /libs
parentabb201ab57ee0938f92685b6466da3b548529de6 (diff)
libs/web: show input/forward hints in zonelist widget only if bnoth allowany and allowlocal are enabled
Diffstat (limited to 'libs')
-rw-r--r--libs/web/luasrc/view/cbi/firewall_zonelist.htm6
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/web/luasrc/view/cbi/firewall_zonelist.htm b/libs/web/luasrc/view/cbi/firewall_zonelist.htm
index 19ff05944..53fa83624 100644
--- a/libs/web/luasrc/view/cbi/firewall_zonelist.htm
+++ b/libs/web/luasrc/view/cbi/firewall_zonelist.htm
@@ -29,7 +29,8 @@
<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> (<%:input%>)
+ <strong><%:Device%></strong>
+ <% if self.allowany and self.allowlocal then %>(<%:input%>)<% end %>
</label>
</li>
<% end %>
@@ -37,7 +38,8 @@
<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%>)
+ <strong><%:Any zone%></strong>
+ <% if self.allowany and self.allowlocal then %>(<%:forward%>)<% end %>
</label>
</li>
<% end %>