Changeset 8123

Show
Ignore:
Timestamp:
12/20/11 18:51:44 (17 months ago)
Author:
jow
Message:

libs/web: show input/forward hints in zonelist widget only if bnoth allowany and allowlocal are enabled

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/libs/web/luasrc/view/cbi/firewall_zonelist.htm

    r8107 r8123  
    3030        <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; 
    3131        <label<%=attr("for", cbid .. "_empty")%> style="background-color:<%=fwm.zone.get_color()%>; padding:0.5em"> 
    32             <strong><%:Device%></strong> (<%:input%>) 
     32            <strong><%:Device%></strong> 
     33            <% if self.allowany and self.allowlocal then %>(<%:input%>)<% end %> 
    3334        </label> 
    3435    </li> 
     
    3839        <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; 
    3940        <label<%=attr("for", cbid .. "_any")%> style="background-color:<%=fwm.zone.get_color()%>; padding:0.5em"> 
    40             <strong><%:Any zone%></strong> (<%:forward%>) 
     41            <strong><%:Any zone%></strong> 
     42            <% if self.allowany and self.allowlocal then %>(<%:forward%>)<% end %> 
    4143        </label> 
    4244    </li>