diff options
author | levinse <levinse> | 2011-01-22 20:03:50 +0000 |
---|---|---|
committer | levinse <levinse> | 2011-01-22 20:03:50 +0000 |
commit | e87a701dd25a5d20218924057aa0d38def2eefc1 (patch) | |
tree | cff56e9aa5bccc7f75f93b98d4e778edb2c79d2d /httemplate/elements/select-mac.html | |
parent | 0259db6a5f67fa8837c18bbaed3e424cccf7a3e0 (diff) |
populate MAC address from inventory for svc_phone devices, RT7794
Diffstat (limited to 'httemplate/elements/select-mac.html')
-rw-r--r-- | httemplate/elements/select-mac.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/httemplate/elements/select-mac.html b/httemplate/elements/select-mac.html new file mode 100644 index 000000000..3153ca7cd --- /dev/null +++ b/httemplate/elements/select-mac.html @@ -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> |