poll: add poll creation form

pull/86/head
Eldeberen 2 years ago
parent 473448ab5b
commit 0801b8ec16
Signed by: Darks
GPG Key ID: 7515644268BE1433

@ -0,0 +1,22 @@
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',
)
Loading…
Cancel
Save