FossilRepo

fossilrepo / accounts / forms.py
Source Blame History 22 lines
c588255… ragelink 1 from django import forms
c588255… ragelink 2 from django.contrib.auth.forms import AuthenticationForm
c588255… ragelink 3
c588255… ragelink 4
c588255… ragelink 5 class LoginForm(AuthenticationForm):
c588255… ragelink 6 username = forms.CharField(
c588255… ragelink 7 widget=forms.TextInput(
c588255… ragelink 8 attrs={
c588255… ragelink 9 "class": "w-full rounded-md border-gray-300 shadow-sm focus:border-brand focus:ring-brand",
c588255… ragelink 10 "placeholder": "Username",
c588255… ragelink 11 "autofocus": True,
c588255… ragelink 12 }
c588255… ragelink 13 )
c588255… ragelink 14 )
c588255… ragelink 15 password = forms.CharField(
c588255… ragelink 16 widget=forms.PasswordInput(
c588255… ragelink 17 attrs={
c588255… ragelink 18 "class": "w-full rounded-md border-gray-300 shadow-sm focus:border-brand focus:ring-brand",
c588255… ragelink 19 "placeholder": "Password",
c588255… ragelink 20 }
c588255… ragelink 21 )
c588255… ragelink 22 )

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button