diff options
author | Prashant S | 2017-09-18 10:53:52 +0530 |
---|---|---|
committer | GitHub | 2017-09-18 10:53:52 +0530 |
commit | 5c624c6831481d0701d673e46ae15fcfcef4152f (patch) | |
tree | f3d1156b8a80f6bb73f25db02f10e36b6ea89311 /website/forms.py | |
parent | dcf6fbb1f9c8f74b38ecfac736136bd28a6600cd (diff) | |
parent | 3a050ce37781aa1cc7aa2555b61714c1eb2f6ec4 (diff) | |
download | SciPy2017-5c624c6831481d0701d673e46ae15fcfcef4152f.tar.gz SciPy2017-5c624c6831481d0701d673e46ae15fcfcef4152f.tar.bz2 SciPy2017-5c624c6831481d0701d673e46ae15fcfcef4152f.zip |
Merge pull request #3 from Sashi20/devel
Changes to Login Interface
Diffstat (limited to 'website/forms.py')
-rwxr-xr-x | website/forms.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/website/forms.py b/website/forms.py index d1dd2e6..7d58554 100755 --- a/website/forms.py +++ b/website/forms.py @@ -163,28 +163,28 @@ class UserRegisterForm(UserCreationForm): model = User fields = ('first_name', 'last_name', 'email', 'username', 'password1', 'password2') - first_name = forms.CharField(widget=forms.TextInput(attrs={'placeholder': 'First Name'}), + first_name = forms.CharField(widget=forms.TextInput(attrs={'class' : 'form-control', 'placeholder': 'First Name'}), label = 'First Name' ) - last_name = forms.CharField(widget=forms.TextInput(attrs={'placeholder': 'Last Name'}), + last_name = forms.CharField(widget=forms.TextInput(attrs={'class' : 'form-control' ,'placeholder': 'Last Name'}), label = 'Last Name' ) - email = forms.EmailField(widget=forms.TextInput(attrs={'placeholder': 'Email'}), + email = forms.EmailField(widget=forms.TextInput(attrs={'class' : 'form-control' ,'placeholder': 'Email'}), required = True, error_messages = {'required':'Email field required.'}, label = 'Email' ) - username = forms.CharField(widget=forms.TextInput(attrs={'placeholder': 'Username'}), + username = forms.CharField(widget=forms.TextInput(attrs={'class' : 'form-control' ,'placeholder': 'Username'}), required = True, error_messages = {'required':'Username field required.'}, label = 'Username' ) - password1 = forms.CharField(widget=forms.PasswordInput(attrs={'placeholder': 'Password'}), + password1 = forms.CharField(widget=forms.PasswordInput(attrs={'class' : 'form-control' ,'placeholder': 'Password'}), required = True, error_messages = {'required':'Password field required.'}, label = 'Password' ) - password2 = forms.CharField(widget=forms.PasswordInput(attrs={'placeholder': 'Confirm Password'}), + password2 = forms.CharField(widget=forms.PasswordInput(attrs={'class' : 'form-control' ,'placeholder': 'Confirm Password'}), required = True, error_messages = {'required':'Password Confirm field required.'}, label = 'Re-enter Password' @@ -202,10 +202,10 @@ class UserRegisterForm(UserCreationForm): class UserLoginForm(forms.Form): username = forms.CharField( - widget=forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'Username'}), - label='' + widget=forms.TextInput(attrs={'class': 'form-inline', 'placeholder': 'Username'}), + label='User Name' ) password = forms.CharField( - widget=forms.PasswordInput(attrs={'class': 'form-control', 'placeholder': 'Password'}), - label='' + widget=forms.PasswordInput(attrs={'class': 'form-inline', 'placeholder': 'Password'}), + label='Password' ) |