Add autocomplete attributes to profile fields
This commit is contained in:
parent
b8b3d73e95
commit
4f13fa58dc
|
@ -29,22 +29,34 @@ func newProfileForm(ctx context.Context, conn *Conn, locale *Locale) *profileFor
|
|||
Label: pgettext("input", "User name", locale),
|
||||
Type: "text",
|
||||
Required: true,
|
||||
Attributes: []*Attribute{
|
||||
{"autocomplete", "name"},
|
||||
},
|
||||
},
|
||||
Email: &InputField{
|
||||
Name: "email",
|
||||
Label: pgettext("input", "Email", locale),
|
||||
Type: "email",
|
||||
Required: true,
|
||||
Attributes: []*Attribute{
|
||||
{"autocomplete", "username"},
|
||||
},
|
||||
},
|
||||
Password: &InputField{
|
||||
Name: "password",
|
||||
Label: pgettext("input", "Password", locale),
|
||||
Type: "password",
|
||||
Attributes: []*Attribute{
|
||||
{"autocomplete", "new-password"},
|
||||
},
|
||||
},
|
||||
PasswordConfirm: &InputField{
|
||||
Name: "password_confirm",
|
||||
Label: pgettext("input", "Password Confirmation", locale),
|
||||
Type: "password",
|
||||
Attributes: []*Attribute{
|
||||
{"autocomplete", "new-password"},
|
||||
},
|
||||
},
|
||||
Language: &SelectField{
|
||||
Name: "language",
|
||||
|
|
Loading…
Reference in New Issue