Adding class to remember me
authordwickwire <wickwire@gmail.com>
Sat, 28 Jan 2012 20:57:20 +0000 (14:57 -0600)
committerdwickwire <wickwire@gmail.com>
Sat, 28 Jan 2012 20:57:20 +0000 (14:57 -0600)
cas_provider/forms.py

index 6bccf02..df62a41 100644 (file)
@@ -7,7 +7,7 @@ class LoginForm(forms.Form):
     email = forms.CharField(max_length=255)
     password = forms.CharField(widget=forms.PasswordInput)
     service = forms.CharField(widget=forms.HiddenInput, required=False)
     email = forms.CharField(max_length=255)
     password = forms.CharField(widget=forms.PasswordInput)
     service = forms.CharField(widget=forms.HiddenInput, required=False)
-    remember_me = forms.BooleanField(required=False, label="Keep me signed in")
+    remember_me = forms.BooleanField(required=False, label="Keep me signed in", widget=forms.CheckboxInput(attrs={'class':'remember_me'}))
 
     def __init__(self, *args, **kwargs):
         # renew = kwargs.pop('renew', None)
 
     def __init__(self, *args, **kwargs):
         # renew = kwargs.pop('renew', None)