diff --git a/src/pretix/presale/forms/customer.py b/src/pretix/presale/forms/customer.py index 9d188dd64..264b11b9b 100644 --- a/src/pretix/presale/forms/customer.py +++ b/src/pretix/presale/forms/customer.py @@ -342,6 +342,7 @@ class ResetPasswordForm(forms.Form): } email = forms.EmailField( label=_('Email'), + widget=forms.EmailInput(attrs={'autocomplete': 'email'}), ) def __init__(self, request=None, *args, **kwargs): @@ -389,12 +390,12 @@ class ChangePasswordForm(forms.Form): ) password_current = forms.CharField( label=_('Your current password'), - widget=forms.PasswordInput, + widget=forms.PasswordInput(attrs={'autocomplete': 'current-password'}), required=True ) password = forms.CharField( label=_('New password'), - widget=forms.PasswordInput, + widget=forms.PasswordInput(attrs={'minlength': '8', 'autocomplete': 'new-password'}), max_length=4096, required=True ) @@ -458,7 +459,7 @@ class ChangeInfoForm(forms.ModelForm): } password_current = forms.CharField( label=_('Your current password'), - widget=forms.PasswordInput, + widget=forms.PasswordInput(attrs={'autocomplete': 'current-password'}), help_text=_('Only required if you change your email address'), max_length=4096, required=False @@ -472,6 +473,8 @@ class ChangeInfoForm(forms.ModelForm): self.request = request super().__init__(*args, **kwargs) + self.fields['email'].widget.attrs['autocomplete'] = 'email' + self.fields['name_parts'] = NamePartsFormField( max_length=255, required=True, diff --git a/src/pretix/presale/forms/waitinglist.py b/src/pretix/presale/forms/waitinglist.py index c2d545ed6..030fe9690 100644 --- a/src/pretix/presale/forms/waitinglist.py +++ b/src/pretix/presale/forms/waitinglist.py @@ -57,6 +57,8 @@ class WaitingListForm(forms.ModelForm): event = self.event + self.fields['email'].widget.attrs['autocomplete'] = 'email' + if event.settings.waiting_list_names_asked: self.fields['name_parts'] = NamePartsFormField( max_length=255, diff --git a/src/pretix/presale/templates/pretixpresale/event/fragment_voucher_form.html b/src/pretix/presale/templates/pretixpresale/event/fragment_voucher_form.html index 7fcdd8fd1..0834b3076 100644 --- a/src/pretix/presale/templates/pretixpresale/event/fragment_voucher_form.html +++ b/src/pretix/presale/templates/pretixpresale/event/fragment_voucher_form.html @@ -15,8 +15,9 @@
+
{% blocktrans trimmed %} You will not receive a confirmation email after you have been added to the waiting list. We will only contact you once a spot opens up. {% endblocktrans %}
-