diff options
author | Dave Arter <davea@mysociety.org> | 2015-05-27 10:33:47 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2015-10-06 09:09:27 +0100 |
commit | 0d566bdd283178e3648931e742e6f76b6f979ea7 (patch) | |
tree | 9bb85b450b08d0082d2ecbe0288023bb694781ca | |
parent | 91e603533b54a184c7c39ed22a8be8b558e02602 (diff) |
Autofocus email field on login form
-rw-r--r-- | templates/web/base/auth/general.html | 2 | ||||
-rw-r--r-- | templates/web/zurich/auth/general.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/web/base/auth/general.html b/templates/web/base/auth/general.html index 7efef4f6b..6e1db86fe 100644 --- a/templates/web/base/auth/general.html +++ b/templates/web/base/auth/general.html @@ -25,7 +25,7 @@ [% ELSIF sign_in_error %] <div class="form-error">[% loc('There was a problem with your email/password combination. If you cannot remember your password, or do not have one, please fill in the ‘sign in by email’ section of the form.') %]</div> [% END %] - <input type="email" class="required email" id="email" name="email" value="[% email | html %]" placeholder="[% loc('Your email address') %]"> + <input type="email" class="required email" id="email" name="email" value="[% email | html %]" placeholder="[% loc('Your email address') %]" autofocus> <div id="form_sign_in"> <h3>[% tprintf(loc("Do you have a %s password?", "%s is the site name"), site_name) %]</h3> diff --git a/templates/web/zurich/auth/general.html b/templates/web/zurich/auth/general.html index 11c729fde..fd34b79f8 100644 --- a/templates/web/zurich/auth/general.html +++ b/templates/web/zurich/auth/general.html @@ -27,7 +27,7 @@ END %] [% ELSIF sign_in_error %] <div class="form-error">[% loc('There was a problem with your email/password combination. If you cannot remember your password, or do not have one, please fill in the ‘sign in by email’ section of the form.') %]</div> [% END %] - <input type="email" class="required email" id="email" name="email" value="[% email | html %]" placeholder="[% loc('Your email address') %]"> + <input type="email" class="required email" id="email" name="email" value="[% email | html %]" placeholder="[% loc('Your email address') %]" autofocus> <label for="password_sign_in">[% loc('Password (optional)') %]</label> <div class="form-txt-submit-box"> |