mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
13 lines
584 B
Python
13 lines
584 B
Python
|
from flask_wtf import FlaskForm
|
||
|
from wtforms import DecimalField, StringField, SubmitField, TextAreaField
|
||
|
from wtforms.validators import DataRequired, Email, Length, NumberRange
|
||
|
|
||
|
|
||
|
class FeedbackForm(FlaskForm):
|
||
|
email = StringField('Email', validators=[DataRequired(), Email()])
|
||
|
feedback = TextAreaField('Feedback', validators=[Length(0, 255)])
|
||
|
like_range = DecimalField('How would you rate nopaque?',
|
||
|
validators=[DataRequired(),
|
||
|
NumberRange(min=1, max=10)])
|
||
|
submit = SubmitField('Send feedback')
|