phpvirtualbox/panes/login.html

37 lines
1.2 KiB
HTML

<!--
Login dialog
Copyright (C) 2010-2015 Ian Moore (imoore76 at yahoo dot com)
$Id: login.html 595 2015-04-17 09:50:36Z imoore76 $
-->
<div id='vboxLogin'>
<form>
<table class='vboxVertical' style='margin:0px;'>
<tr>
<th><span class='translate'>Username</span>:</th>
<td><input type='text' name='username' class='vboxText' /></td>
</tr>
<tr>
<th><span class='translate'>Password</span>:</th>
<td><input type='password' name='password' class='vboxText' /></td>
</tr>
<tr id='vboxLoginBtnRow' style='display:none;padding:0px;margin:0px;border:0px;'>
<th style='padding:0px;margin:0px;border:0px'></th>
<td style='padding:0px;margin:0px;border:0px'><input type='submit' value='' style='border:0px;margin:0px;display:inline;background:#fff;text:#fff;padding:0px;height:1px;' /></td>
</tr>
</table>
</form>
</div>
<script type='text/javascript'>
$('#vboxLogin').find(".translate").html(function(i,h){return trans(h,'UIUsers');}).removeClass('translate');
if($.browser.msie || $.browser.webkit) $('#vboxLoginBtnRow').css({'display':''});
$('#vboxLogin form').on('submit', function(e) {
$('#vboxLogin').dialog( "option", "buttons" )[trans('Log in','UIUsers')]();
e.stopPropagation();
e.preventDefault();
return false;
});
</script>