You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
464 B
15 lines
464 B
# forms.py
|
|
from flask_wtf import FlaskForm
|
|
from wtforms import StringField, SelectField
|
|
from wtforms.validators import DataRequired
|
|
from models import Question # Zorg ervoor dat Question correct geïmporteerd wordt
|
|
|
|
|
|
class QuestionForm(FlaskForm):
|
|
text = StringField('Vraag', validators=[DataRequired()])
|
|
|
|
|
|
class ChoiceForm(FlaskForm):
|
|
text = StringField('Keuze', validators=[DataRequired()])
|
|
next_question = SelectField('Volgende vraag', coerce=int)
|