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.
22 lines
496 B
22 lines
496 B
3 years ago
|
"""Form object declaration."""
|
||
|
from flask_wtf import FlaskForm
|
||
|
from flask_wtf.file import FileField, FileAllowed
|
||
|
from wtforms import validators
|
||
|
from wtforms import (
|
||
|
RadioField,
|
||
|
SubmitField,
|
||
|
)
|
||
|
|
||
|
|
||
|
class ThemeForm(FlaskForm):
|
||
|
"""Publication upload form."""
|
||
|
theme = RadioField(
|
||
|
"Select your theme:",
|
||
|
choices=[
|
||
|
("hacking", "Hacking"),
|
||
|
("peachsunset", "Peach sunset"),
|
||
|
("wdka", "WdkA")
|
||
|
],
|
||
|
)
|
||
|
save = SubmitField("Save")
|