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.
23 lines
515 B
23 lines
515 B
2 years ago
|
from flask_wtf import FlaskForm
|
||
|
from wtforms import StringField, SubmitField, TextAreaField
|
||
|
from wtforms.fields.html5 import DateTimeField
|
||
|
from wtforms.validators import InputRequired
|
||
|
|
||
|
|
||
|
class FPollForm(FlaskForm):
|
||
|
title = StringField(
|
||
|
'Question',
|
||
|
validators=[
|
||
|
InputRequired(),
|
||
|
],
|
||
|
)
|
||
|
choices = PasswordField(
|
||
|
'Choix (un par ligne)',
|
||
|
validators=[
|
||
|
InputRequired(),
|
||
|
],
|
||
|
)
|
||
|
submit = SubmitField(
|
||
|
'Créer le sondage',
|
||
|
)
|