populate MAC address from inventory for svc_phone devices, RT7794
[freeside.git] / httemplate / elements / select-mac.html
diff --git a/httemplate/elements/select-mac.html b/httemplate/elements/select-mac.html
new file mode 100644 (file)
index 0000000..3153ca7
--- /dev/null
@@ -0,0 +1,19 @@
+<% include('/elements/xmlhttp.html',
+              'url'  => $p.'misc/macinventory.cgi',
+              'subs' => [ $opt{'prefix'}. 'get_macs' ],
+          )
+%>
+
+<% include( '/elements/input-text.html', %opt, 'type'=>'text' ) %>
+
+<SELECT ID="<% $opt{'prefix'} %>sel_mac_addr" NAME="<% $opt{'prefix'} %>mac_addr" 
+    notonChange="<% $opt{'prefix'} %>mac_addr_changed(this); <% $opt{'onchange'} %>"
+    <% $opt{'disabled'} %> STYLE="display: none">
+  <OPTION VALUE="">Select MAC address</OPTION>
+</SELECT>
+
+<%init>
+
+my %opt = @_;
+
+</%init>