mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-28 09:22:38 +02:00
side-effect: add autofocus on admin field
This commit is contained in:
parent
19f5f07bfb
commit
9ccfc2981d
1 changed files with 3 additions and 1 deletions
|
@ -295,7 +295,9 @@ class AuthenticationForm(FlaskForm):
|
|||
|
||||
|
||||
class AdminAuthenticationForm(FlaskForm):
|
||||
admin_password = PasswordField(_("Admin password"), validators=[DataRequired()])
|
||||
admin_password = PasswordField(
|
||||
_("Admin password"), validators=[DataRequired()], render_kw={"autofocus": True}
|
||||
)
|
||||
submit = SubmitField(_("Get in"))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue