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