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


class Send_post(FlaskForm):

	title = StringField('title', validators=[DataRequired(), Length(min=5, max=40)])
	text = TextAreaField('write down your thought')
	submit = SubmitField('submit')

class Send_comment(FlaskForm):

	comment = TextAreaField('your view over this article:', 
							validators=[DataRequired(), Length(10,200)])
	submit = SubmitField('Submit')