1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 04:00:01 +00:00

Add tabindexes to login elements (#420)

Fixes issue with password managers (e.g. KeePass) tabbing to 'Forgot your password?' link instead of password field.
This commit is contained in:
JodanJodan 2017-12-02 05:31:52 -06:00 committed by Anna-Maria Meriniemi
parent 7f9dc622b1
commit 052a038763

View file

@ -12,7 +12,7 @@
<div class="row">
<div class="form-group col-md-4">
{{ render_field(form.username, class_='form-control', placeholder='Username', autofocus='') }}
{{ render_field(form.username, class_='form-control', placeholder='Username', autofocus='', tabindex='1') }}
</div>
</div>
@ -32,7 +32,7 @@
</small>
{% endif%}
{{ form.password(title=form.password.description, class_='form-control') | safe }}
{{ form.password(title=form.password.description, class_='form-control', tabindex='2') | safe }}
{% if form.password.errors %}
<div class="help-block">
{% if form.password.errors|length < 2 %}
@ -54,7 +54,7 @@
<div class="row">
<div class="col-md-4">
<input type="submit" value="Login" class="btn btn-primary">
<input type="submit" value="Login" class="btn btn-primary" tabindex="3">
</div>
</div>
</form>