from flask_wtf import FlaskForm
from wtforms import StringField, TextAreaField, SubmitField, SelectField
from wtforms.validators import Required


class BlogForm(FlaskForm):

    blog_title = StringField("Blog title", validators=[Required()])
    blog_description = StringField("Blog description", validators=[Required()])
    story = TextAreaField("Blog content", validators=[Required()])
    category = SelectField(
        "Category",
        choices=[
            ("Gaming", "Gaming"),
            ("Career", "Career"),
            ("Technology", "Technology"),
            ("Sports", "Sports"),
            ("Fitness", "Fitness"),
        ],
        validators=[Required()],
    )
    submit = SubmitField("Post")


class CommentForm(FlaskForm):

    details = TextAreaField("Your comment", validators=[Required()])

    submit = SubmitField("Comment")


class UpdateProfile(FlaskForm):
    bio = TextAreaField("Tell us about you.", validators=[Required()])
    submit = SubmitField("Submit")


# class DeletePost(FlaskForm):
#     comment_id = StringField()
#     delete = SubmitField('Delete')


class UpdateProfile(FlaskForm):
    bio = TextAreaField("Tell us about you.", validators=[Required()])
    submit = SubmitField("Submit")


from flask_wtf import FlaskForm
from wtforms import StringField, TextAreaField, SubmitField, SelectField
from wtforms.validators import Required


class BlogForm(FlaskForm):

    blog_title = StringField("Blog title", validators=[Required()])
    blog_description = StringField("Blog description", validators=[Required()])
    story = TextAreaField("Blog content", validators=[Required()])
    category = SelectField(
        "Category",
        choices=[
            ("Gaming", "Gaming"),
            ("Career", "Career"),
            ("Technology", "Technology"),
            ("Sports", "Sports"),
            ("Fitness", "Fitness"),
        ],
        validators=[Required()],
    )
    submit = SubmitField("Post")


class CommentForm(FlaskForm):

    details = TextAreaField("Your comment", validators=[Required()])

    submit = SubmitField("Comment")


class UpdateProfile(FlaskForm):
    bio = TextAreaField("Tell us about you.", validators=[Required()])
    submit = SubmitField("Submit")


# class DeletePost(FlaskForm):
#     comment_id = StringField()
#     delete = SubmitField('Delete')


class UpdateProfile(FlaskForm):
    bio = TextAreaField("Tell us about you.", validators=[Required()])
    submit = SubmitField("Submit")


# class DeletePost(FlaskForm): #     comment_id = StringField() #     delete = SubmitField('Delete')