from flask.ext.wtf import Form
from wtforms import StringField, BooleanField, PasswordField
from wtforms.validators import InputRequired, Email, EqualTo, Length

class LoginForm(Form):
    nickname = StringField('nickname', validators=[InputRequired()])
    password = PasswordField('password', validators=[InputRequired()])
    remember_me = BooleanField('remember_me', default=False)

class RegisterForm(Form):
    nickname = StringField('nickname', validators=[InputRequired()])
    email = StringField('email', validators=[InputRequired(), Email()])
    password = PasswordField('password', validators=[InputRequired(), 
                                                     EqualTo('confirm', message='Password must match')])
    confirm = PasswordField('confirm password')

class NewPostForm(Form):
    body = StringField('body', validators=[InputRequired(), Length(max=140)])
[((343, 385), 'wtforms.BooleanField', 'BooleanField', (['"""remember_me"""'], {'default': '(False)'}), "('remember_me', default=False)\n", (355, 385), False, 'from wtforms import StringField, BooleanField, PasswordField\n'), ((744, 777), 'wtforms.PasswordField', 'PasswordField', (['"""confirm password"""'], {}), "('confirm password')\n", (757, 777), False, 'from wtforms import StringField, BooleanField, PasswordField\n'), ((236, 251), 'wtforms.validators.InputRequired', 'InputRequired', ([], {}), '()\n', (249, 251), False, 'from wtforms.validators import InputRequired, Email, EqualTo, Length\n'), ((307, 322), 'wtforms.validators.InputRequired', 'InputRequired', ([], {}), '()\n', (320, 322), False, 'from wtforms.validators import InputRequired, Email, EqualTo, Length\n'), ((464, 479), 'wtforms.validators.InputRequired', 'InputRequired', ([], {}), '()\n', (477, 479), False, 'from wtforms.validators import InputRequired, Email, EqualTo, Length\n'), ((527, 542), 'wtforms.validators.InputRequired', 'InputRequired', ([], {}), '()\n', (540, 542), False, 'from wtforms.validators import InputRequired, Email, EqualTo, Length\n'), ((544, 551), 'wtforms.validators.Email', 'Email', ([], {}), '()\n', (549, 551), False, 'from wtforms.validators import InputRequired, Email, EqualTo, Length\n'), ((607, 622), 'wtforms.validators.InputRequired', 'InputRequired', ([], {}), '()\n', (620, 622), False, 'from wtforms.validators import InputRequired, Email, EqualTo, Length\n'), ((678, 727), 'wtforms.validators.EqualTo', 'EqualTo', (['"""confirm"""'], {'message': '"""Password must match"""'}), "('confirm', message='Password must match')\n", (685, 727), False, 'from wtforms.validators import InputRequired, Email, EqualTo, Length\n'), ((847, 862), 'wtforms.validators.InputRequired', 'InputRequired', ([], {}), '()\n', (860, 862), False, 'from wtforms.validators import InputRequired, Email, EqualTo, Length\n'), ((864, 879), 'wtforms.validators.Length', 'Length', ([], {'max': '(140)'}), '(max=140)\n', (870, 879), False, 'from wtforms.validators import InputRequired, Email, EqualTo, Length\n')]