forked from crunk/distribusi-verse
22 lines
496 B
Python
22 lines
496 B
Python
|
"""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")
|