# HG changeset patch # User Brian Neal # Date 1322170027 0 # Node ID b137a0966e4b248fc47371bdc442a5530a3f35ec # Parent 9894f8cbb931502dbe1f7a7697c6753778142819 Removed the warning about AT&T and sbcglobal on the registration page. Added "text" classes to the registration text widgets. diff -r 9894f8cbb931 -r b137a0966e4b gpp/accounts/forms.py --- a/gpp/accounts/forms.py Tue Nov 22 01:25:08 2011 +0000 +++ b/gpp/accounts/forms.py Thu Nov 24 21:27:07 2011 +0000 @@ -18,13 +18,18 @@ class RegisterForm(forms.Form): """Form used to register with the website""" - username = forms.RegexField(max_length=30, regex=r'^\w+$', - error_messages={ - 'invalid': 'Your username must be 30 characters or less and ' - 'contain only letters, numbers and underscores.'}) - email = forms.EmailField() - password1 = forms.CharField(label="Password", widget=forms.PasswordInput) - password2 = forms.CharField(label="Password confirmation", widget=forms.PasswordInput) + username = forms.RegexField( + max_length=30, + regex=r'^\w+$', + error_messages={'invalid': ('Your username must be 30 characters or' + ' less and contain only letters, numbers and underscores.')}, + widget=forms.TextInput(attrs={'class': 'text'}), + ) + email = forms.EmailField(widget=forms.TextInput(attrs={'class': 'text'})) + password1 = forms.CharField(label="Password", + widget=forms.PasswordInput(attrs={'class': 'text'})) + password2 = forms.CharField(label="Password confirmation", + widget=forms.PasswordInput(attrs={'class': 'text'})) agree_age = forms.BooleanField(required=True, label='I certify that I am over the age of 13', error_messages={ @@ -41,7 +46,8 @@ error_messages={ 'required': 'You have not agreed to our Privacy Policy.', }) - question1 = forms.CharField(label="What number appears in the site name?") + question1 = forms.CharField(label="What number appears in the site name?", + widget=forms.TextInput(attrs={'class': 'text'})) question2 = forms.CharField(label='', required=False, widget=forms.TextInput(attrs={'style': 'display: none;'})) diff -r 9894f8cbb931 -r b137a0966e4b gpp/templates/accounts/register.html --- a/gpp/templates/accounts/register.html Tue Nov 22 01:25:08 2011 +0000 +++ b/gpp/templates/accounts/register.html Thu Nov 24 21:27:07 2011 +0000 @@ -13,24 +13,6 @@
  • You must agree to our Terms of Service.
  • You must agree to our Privacy Policy.
  • -
    -
    -

    Notice -Attention AT&T & Sbcglobal users: -Please be aware that AT&T & Sbcglobal are currently refusing email from SurfGuitar101.com. These -users may not receive the confirmation email. If you have another email address you -can register from, please use it instead. Gmail, Hotmail, and Yahoo mail are known to work. -

    -

    If you must use a AT&T/Sbcglobal account to register:

    -
      -
    1. Register using the form below.
    2. -
    3. Wait half an hour or so for the confirmation email. Check spam folders.
    4. -
    5. If you do not receive the confirmation email, please send an email to admin at surfguitar101 dot com from the email address you registered with and ask us to manually activate your account. -
    6. -
    -

    We apologize for any inconvenience, but please send all complaints to AT&T.

    -
    -
    {% csrf_token %} {{ form.as_table }}