]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Merge pull request #3691 from Simounet/feature/login-username-autofocus
authorJérémy Benoist <j0k3r@users.noreply.github.com>
Wed, 11 Jul 2018 18:49:38 +0000 (18:49 +0000)
committerGitHub <noreply@github.com>
Wed, 11 Jul 2018 18:49:38 +0000 (18:49 +0000)
Autofocus the username field on the login page

src/Wallabag/UserBundle/Resources/views/Security/login.html.twig

index 32984c845483e912c1cf30b40f716c221fa85959..3dd98fb642f591ce8e81d9d59d913581ec466862 100644 (file)
@@ -16,7 +16,7 @@
 
             <div class="input-field col s12">
                 <label for="username">{{ 'security.login.username'|trans }}</label>
-                <input type="text" id="username" name="_username" value="{{ last_username }}" />
+                <input type="text" id="username" name="_username" value="{{ last_username }}" autofocus />
             </div>
 
             <div class="input-field col s12">