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:
commit
9b3048a141
@ -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',
|
||||
}),
|
||||
)
|
||||
|
||||
|
||||
|
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user