From 0992857e75f4bd47672c96c8c7558de73dd61f31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0est=C3=A1k=20V=C3=ADt?= Date: Thu, 24 Nov 2016 09:40:01 +0100 Subject: [PATCH] Autofocus username field in login form --- app/views/auth/signIn.scala.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/auth/signIn.scala.html b/app/views/auth/signIn.scala.html index ef29208..e8db588 100644 --- a/app/views/auth/signIn.scala.html +++ b/app/views/auth/signIn.scala.html @@ -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")) *@ } + } \ No newline at end of file