dynamicweb/membership/forms.py

15 lines
660 B
Python
Raw Normal View History

2016-03-07 16:49:02 +00:00
__author__ = 'tomislav'
from django import forms
class LoginForm(forms.Form):
email = forms.EmailField(label="Email address", max_length=50,
widget=forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'Enter email'}))
password = forms.CharField(label='Password', max_length=50,
widget=forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'Password','type':'password'}))
class RegisterForm(LoginForm):
name = forms.CharField(label='Name', max_length=50,
widget=forms.TextInput(attrs={'class': 'form-control', 'placeholder':'Enter name'}))