Changeset View
Changeset View
Standalone View
Standalone View
bid_main/forms.py
| Show First 20 Lines • Show All 223 Lines • ▼ Show 20 Lines | |||||
| class PrivacyPolicyAgreeForm(forms.Form): | class PrivacyPolicyAgreeForm(forms.Form): | ||||
| agree = forms.BooleanField( | agree = forms.BooleanField( | ||||
| initial=False, | initial=False, | ||||
| help_text="Check to agree with our privacy policy", | help_text="Check to agree with our privacy policy", | ||||
| ) | ) | ||||
| next_url = forms.CharField( | next_url = forms.CharField( | ||||
| max_length=1024, widget=forms.HiddenInput, required=False | max_length=1024, widget=forms.HiddenInput, required=False | ||||
| ) | ) | ||||
| class DeleteForm(forms.Form): | |||||
| msg_delete_confirm = _("Confirm your decision by ticking this box") | |||||
| msg_delete_help_text = _("I understand, delete my account anyway") | |||||
| confirm = forms.BooleanField( | |||||
| initial=False, | |||||
| help_text=msg_delete_help_text, | |||||
| required=True, | |||||
| error_messages={ | |||||
| "required": msg_delete_confirm, | |||||
| "invalid": msg_delete_confirm, | |||||
| }, | |||||
| widget=forms.CheckboxInput( | |||||
| attrs={ | |||||
| "autocomplete": "off", | |||||
| }, | |||||
| ), | |||||
| ) | |||||