<gh_stars>0
from flask_wtf import FlaskForm
from wtforms import TextField, PasswordField, SubmitField, StringField, IntegerField
from wtforms.validators import DataRequired


class RegisterForm(FlaskForm):
    email = TextField('Почта', validators=[DataRequired()])
    password = PasswordField('<PASSWORD>', validators=[DataRequired()])
    password_again = PasswordField('<PASSWORD>', validators=[DataRequired()])
    name = StringField('Имя пользователя', validators=[DataRequired()])
    surname = StringField('Фамилия пользователя', validators=[DataRequired()])
    age = IntegerField('Визраст', validators=[DataRequired()])
    submit = SubmitField('Войти')


from flask_wtf import FlaskForm
from wtforms import TextField, PasswordField, SubmitField, StringField, IntegerField
from wtforms.validators import DataRequired


class RegisterForm(FlaskForm):
    email = TextField('Почта', validators=[DataRequired()])
    password = PasswordField('<PASSWORD>', validators=[DataRequired()])
    password_again = PasswordField('<PASSWORD>', validators=[DataRequired()])
    name = StringField('Имя пользователя', validators=[DataRequired()])
    surname = StringField('Фамилия пользователя', validators=[DataRequired()])
    age = IntegerField('Визраст', validators=[DataRequired()])
    submit = SubmitField('Войти')