0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Merge branch 'login_page_tabindex' of https://github.com/nimasmi/wagtail into nimasmi-login_page_tabindex

This commit is contained in:
Matt Westcott 2014-10-23 16:08:13 +01:00
commit 9b3048a141
2 changed files with 8 additions and 4 deletions

View File

@ -40,10 +40,14 @@ class EmailLinkChooserWithLinkTextForm(forms.Form):
class LoginForm(AuthenticationForm):
username = forms.CharField(
max_length=254,
widget=forms.TextInput(attrs={'placeholder': ugettext_lazy("Enter your username")}),
widget=forms.TextInput(attrs={'placeholder': ugettext_lazy("Enter your username"),
'tabindex': '1',
}),
)
password = forms.CharField(
widget=forms.PasswordInput(attrs={'placeholder': ugettext_lazy("Enter password")}),
widget=forms.PasswordInput(attrs={'placeholder': ugettext_lazy("Enter password"),
'tabindex': '2',
}),
)

View File

@ -55,7 +55,7 @@
</li>
{% endcomment %}
<li class="submit">
<input type="submit" value="{% trans 'Sign in' %}"/>
<input type="submit" value="{% trans 'Sign in' %}" tabindex="3"/>
</li>
</ul>
</form>
@ -68,4 +68,4 @@
$('form input[name=username]').focus();
})
</script>
{% endblock %}
{% endblock %}