libs/web: add support for exclude property to ifacelist and netlist widgets
[project/luci.git] / libs / web / luasrc / view / cbi / network_netlist.htm
index 2d464cc..46da88f 100644 (file)
@@ -33,7 +33,7 @@ $Id$
 
 <ul style="margin:0; list-style-type:none; text-align:left">
        <% for _, net in ipairs(networks) do
-              if net:name() ~= "loopback" then %>
+              if net:name() ~= "loopback" and net:name() ~= self.exclude then %>
        <li style="padding:0.25em 0">
                <input class="cbi-input-radio" onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)"<%=
                        attr("type", self.widget or "radio") ..