diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-10-31 21:41:27 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-10-31 21:41:27 +0000 |
commit | 0a7bfa4f780a91d78bbe66bb8802a8857c957871 (patch) | |
tree | 0b88e5045e8d7c4ab0d284fec64054976dbaea22 | |
parent | 0a8fa4e4a53d5b75961d286cf503536a51b072d6 (diff) |
libs/web: support entering custom ifnames in iface list widget
-rw-r--r-- | libs/web/luasrc/view/cbi/network_ifacelist.htm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libs/web/luasrc/view/cbi/network_ifacelist.htm b/libs/web/luasrc/view/cbi/network_ifacelist.htm index a69bd3284..5553da6cc 100644 --- a/libs/web/luasrc/view/cbi/network_ifacelist.htm +++ b/libs/web/luasrc/view/cbi/network_ifacelist.htm @@ -56,6 +56,20 @@ $Id$ </label> </li> <% 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> <%+cbi/valuefooter%> |