libs/web: support entering custom ifnames in iface list widget
This commit is contained in:
parent
0a8fa4e4a5
commit
0a7bfa4f78
1 changed files with 14 additions and 0 deletions
|
@ -56,6 +56,20 @@ $Id$
|
||||||
</label>
|
</label>
|
||||||
</li>
|
</li>
|
||||||
<% end end %>
|
<% end end %>
|
||||||
|
<% if not self.nocreate then %>
|
||||||
|
<li>
|
||||||
|
<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("id", cbid .. "_custom") ..
|
||||||
|
attr("name", cbid)
|
||||||
|
%> />
|
||||||
|
<label<%=attr("for", cbid .. "_custom")%>>
|
||||||
|
<img title="<%:Custom Interface%>" style="width:16px; height:16px; vertical-align:middle" src="<%=resource%>/icons/ethernet_disabled.png" />
|
||||||
|
<%:Custom Interface%>:
|
||||||
|
</label>
|
||||||
|
<input type="text" style="width:50px" onfocus="document.getElementById('<%=cbid%>_custom').checked=true" onblur="var x=document.getElementById('<%=cbid%>_custom'); x.value=this.value; x.checked=true" />
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<%+cbi/valuefooter%>
|
<%+cbi/valuefooter%>
|
||||||
|
|
Loading…
Reference in a new issue