libs/web: add support for exclude property to ifacelist and netlist widgets
This commit is contained in:
parent
442438fe9d
commit
59e3062caf
2 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ $Id$
|
||||||
<ul style="margin:0; list-style-type:none">
|
<ul style="margin:0; list-style-type:none">
|
||||||
<% for _, iface in ipairs(ifaces) do
|
<% for _, iface in ipairs(ifaces) do
|
||||||
local link = iface:adminlink()
|
local link = iface:adminlink()
|
||||||
if not self.nobridges or not iface:is_bridge() then %>
|
if (not self.nobridges or not iface:is_bridge()) and iface:name() ~= self.exclude then %>
|
||||||
<li>
|
<li>
|
||||||
<input class="cbi-input-<%=self.widget or "radio"%>" onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)"<%=
|
<input class="cbi-input-<%=self.widget or "radio"%>" onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)"<%=
|
||||||
attr("type", self.widget or "radio") ..
|
attr("type", self.widget or "radio") ..
|
||||||
|
|
|
@ -33,7 +33,7 @@ $Id$
|
||||||
|
|
||||||
<ul style="margin:0; list-style-type:none; text-align:left">
|
<ul style="margin:0; list-style-type:none; text-align:left">
|
||||||
<% for _, net in ipairs(networks) do
|
<% 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">
|
<li style="padding:0.25em 0">
|
||||||
<input class="cbi-input-radio" onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)"<%=
|
<input class="cbi-input-radio" onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)"<%=
|
||||||
attr("type", self.widget or "radio") ..
|
attr("type", self.widget or "radio") ..
|
||||||
|
|
Loading…
Reference in a new issue