First time here? Check out the FAQ!

Revision history  [back]

cannot apply a css on login/password fields

In order to be able to apply a css on the fields "login" and "password", the class names must not contain spaces.

Please, could you rename the class "required login" by "required_login" by applying the following patch :

diff --git a/askbot/deps/django_authopenid/forms.py b/askbot/deps/django_authopenid/forms.py
index 429fa55..1e5aa6d 100644
--- a/askbot/deps/django_authopenid/forms.py
+++ b/askbot/deps/django_authopenid/forms.py
@@ -131,7 +131,7 @@ class LoginForm(forms.Form):
     password = forms.CharField(
                     max_length=128,
                     widget=forms.widgets.PasswordInput(
-                                            attrs={'class':'required login'}
+                                            attrs={'class':'required_login'}
                                         ),
                     required=True
                 )
@@ -143,14 +143,14 @@ class LoginForm(forms.Form):
     new_password = forms.CharField(
                     max_length=128,
                     widget=forms.widgets.PasswordInput(
-                                            attrs={'class':'required login'}
+                                            attrs={'class':'required_login'}
                                         ),
                     required=False
                 )
     new_password_retyped = forms.CharField(
                     max_length=128,
                     widget=forms.widgets.PasswordInput(
-                                            attrs={'class':'required login'}
+                                            attrs={'class':'required_login'}
                                         ),
                     required=False
                 )
diff --git a/askbot/utils/forms.py b/askbot/utils/forms.py
index 575416b..f159ce8 100644
--- a/askbot/utils/forms.py
+++ b/askbot/utils/forms.py
@@ -38,7 +38,7 @@ class NextUrlField(forms.CharField):
     def clean(self,value):
         return clean_next(value)

-login_form_widget_attrs = { 'class': 'required login' }
+login_form_widget_attrs = { 'class': 'required_login' }

 class UserNameField(StrippedNonEmptyCharField):
     RESERVED_NAMES = (u'fuck', u'shit', u'ass', u'sex', u'add',

cannot apply a css on login/password fields

In order to be able to apply a css on the fields "login" and "password", the class names must not contain spaces.

Please, Please could you rename the class "required login" by "required_login" by applying the following patch :

diff --git a/askbot/deps/django_authopenid/forms.py b/askbot/deps/django_authopenid/forms.py
index 429fa55..1e5aa6d 100644
--- a/askbot/deps/django_authopenid/forms.py
+++ b/askbot/deps/django_authopenid/forms.py
@@ -131,7 +131,7 @@ class LoginForm(forms.Form):
     password = forms.CharField(
                     max_length=128,
                     widget=forms.widgets.PasswordInput(
-                                            attrs={'class':'required login'}
+                                            attrs={'class':'required_login'}
                                         ),
                     required=True
                 )
@@ -143,14 +143,14 @@ class LoginForm(forms.Form):
     new_password = forms.CharField(
                     max_length=128,
                     widget=forms.widgets.PasswordInput(
-                                            attrs={'class':'required login'}
+                                            attrs={'class':'required_login'}
                                         ),
                     required=False
                 )
     new_password_retyped = forms.CharField(
                     max_length=128,
                     widget=forms.widgets.PasswordInput(
-                                            attrs={'class':'required login'}
+                                            attrs={'class':'required_login'}
                                         ),
                     required=False
                 )
diff --git a/askbot/utils/forms.py b/askbot/utils/forms.py
index 575416b..f159ce8 100644
--- a/askbot/utils/forms.py
+++ b/askbot/utils/forms.py
@@ -38,7 +38,7 @@ class NextUrlField(forms.CharField):
     def clean(self,value):
         return clean_next(value)

-login_form_widget_attrs = { 'class': 'required login' }
+login_form_widget_attrs = { 'class': 'required_login' }

 class UserNameField(StrippedNonEmptyCharField):
     RESERVED_NAMES = (u'fuck', u'shit', u'ass', u'sex', u'add',