<gh_stars>0
from flask_wtf import FlaskForm
from wtforms import SubmitField, SelectField, TextAreaField
from wtforms.validators import DataRequired


class CommentForm(FlaskForm):
    comment = TextAreaField(
        'Оставьте комментарий',
        validators=[DataRequired()],
        render_kw={"class": "form-control", "style": "height: 120px"},
    )
    rating = SelectField(
        'Оцените предмет',
        choices=['', 1, 2, 3, 4, 5],
        default=''
    )
    submit = SubmitField(
        'Отправить',
        render_kw={"class": "btn btn-primary btn-lg"}
    )
