mirror of
https://github.com/tubearchivist/tubearchivist
synced 2024-11-02 09:41:07 +00:00
add autofocus and autocomplete to user form field, #104
This commit is contained in:
parent
5b59c3296f
commit
ada2c1fe59
@ -11,7 +11,14 @@ class CustomAuthForm(AuthenticationForm):
|
|||||||
"""better styled login form"""
|
"""better styled login form"""
|
||||||
|
|
||||||
username = forms.CharField(
|
username = forms.CharField(
|
||||||
widget=TextInput(attrs={"placeholder": "Username"}), label=False
|
widget=TextInput(
|
||||||
|
attrs={
|
||||||
|
"placeholder": "Username",
|
||||||
|
"autofocus": True,
|
||||||
|
"autocomplete": True,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
label=False,
|
||||||
)
|
)
|
||||||
password = forms.CharField(
|
password = forms.CharField(
|
||||||
widget=PasswordInput(attrs={"placeholder": "Password"}), label=False
|
widget=PasswordInput(attrs={"placeholder": "Password"}), label=False
|
||||||
|
Loading…
Reference in New Issue
Block a user