From 0a7bfa4f780a91d78bbe66bb8802a8857c957871 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 31 Oct 2010 21:41:27 +0000 Subject: [PATCH] libs/web: support entering custom ifnames in iface list widget --- libs/web/luasrc/view/cbi/network_ifacelist.htm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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%> -- 2.11.0