from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, TextAreaField, RadioField, PasswordField
from wtforms import validators
from wtforms.validators import Required,DataRequired


class ReviewForm(FlaskForm):
    name = StringField('What is your name?', validators=[DataRequired()])
    review_field = TextAreaField(validators=[DataRequired()])
    radio = RadioField('Label', choices=[('1','1'),('2','2'),('3','3'),('4','4'),('5','5')],validators=[DataRequired()])
    submit = SubmitField('Submit')

class OwnForm(FlaskForm):
    name_of_rest = StringField('What is your name?', validators=[DataRequired()])
    country = StringField('Country', validators=[DataRequired()])
    state = StringField('State')
    city = StringField('City', validators=[DataRequired()])
    address = StringField('Address', validators=[DataRequired()])
    phone = StringField('phone')
    submit = SubmitField('Submit')

class LoginForm(FlaskForm):
    login = StringField('Login', validators=[DataRequired()])
    password = PasswordField('Password', validators=[Required()])

    submit = SubmitField('Log In')
