Improve form "for" and "autocomplete" attributes (#3822)

GitOrigin-RevId: 2ce35d57526fc36b5a974d0f940ef6ba08806864
This commit is contained in:
Alf Eaton
2021-03-31 11:44:48 +01:00
committed by Copybot
parent d0d28524a2
commit 8227e68aca
2 changed files with 3 additions and 1 deletions
@@ -23,11 +23,12 @@ block content
form-messages(for="passwordResetForm" role="alert")
.form-group
label(for='email') #{translate("please_enter_email")}
input.form-control(
input.form-control#email(
type='email',
name='email',
placeholder='email@example.com',
required,
autocomplete="username",
ng-model="email",
autofocus
)
@@ -42,6 +42,7 @@ block content
name='password',
placeholder='new password',
required,
autocomplete="new-password",
ng-model="password",
autofocus,
complex-password