mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-01-17 00:57:18 +01:00
Autofocus username field in login form
This commit is contained in:
@@ -4,9 +4,12 @@
|
||||
@main("Log in"){
|
||||
@form(routes.AuthController.authenticate(callback)){
|
||||
@CSRF.formField
|
||||
@inputText(loginForm("username"))
|
||||
@inputText(loginForm("username"), 'id -> "username")
|
||||
@inputPassword(loginForm("password"))
|
||||
@* checkbox(loginForm("rememberMe")) *@
|
||||
<button type="submit">Log me in!</button>
|
||||
}
|
||||
<script type="text/javascript">
|
||||
document.getElementById("username").focus();
|
||||
</script>
|
||||
}
|
||||
Reference in New Issue
Block a user