2022-01-09 17:22:38 +01:00
|
|
|
"""Form object declaration."""
|
|
|
|
from flask_wtf import FlaskForm
|
|
|
|
from wtforms import (
|
|
|
|
RadioField,
|
|
|
|
SubmitField,
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
class ThemeForm(FlaskForm):
|
|
|
|
"""Publication upload form."""
|
2022-02-13 23:06:16 +01:00
|
|
|
|
2022-01-09 17:22:38 +01:00
|
|
|
theme = RadioField(
|
|
|
|
"Select your theme:",
|
|
|
|
choices=[
|
|
|
|
("hacking", "Hacking"),
|
|
|
|
("peachsunset", "Peach sunset"),
|
2022-02-13 23:06:16 +01:00
|
|
|
("wdka", "WdkA"),
|
2022-01-09 17:22:38 +01:00
|
|
|
],
|
|
|
|
)
|
|
|
|
save = SubmitField("Save")
|