From: Jo-Philipp Wich Date: Sun, 31 Oct 2010 21:41:27 +0000 (+0000) Subject: libs/web: support entering custom ifnames in iface list widget X-Git-Tag: 0.10.0~539 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=0a7bfa4f780a91d78bbe66bb8802a8857c957871 libs/web: support entering custom ifnames in iface list widget --- 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$ <% end end %> + <% if not self.nocreate then %> +
  • + " 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) + %> />   + > + + <%:Custom Interface%>: + + +
  • + <% end %> <%+cbi/valuefooter%>