diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-12-20 17:51:44 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-12-20 17:51:44 +0000 |
commit | 8358175f25c1d73002af5a3ae8f9a7d4711bf228 (patch) | |
tree | cd28dd37ef7825c852450b86e37ed3d4648e9d51 /libs/web/luasrc/view | |
parent | abb201ab57ee0938f92685b6466da3b548529de6 (diff) |
libs/web: show input/forward hints in zonelist widget only if bnoth allowany and allowlocal are enabled
Diffstat (limited to 'libs/web/luasrc/view')
-rw-r--r-- | libs/web/luasrc/view/cbi/firewall_zonelist.htm | 6 |
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 19ff059449..53fa836244 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")%> />   <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")%> />   <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 %> |