distribusi-verse/verse/forms/themeform.py

22 lines
418 B
Python
Raw Normal View History

"""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
theme = RadioField(
"Select your theme:",
choices=[
("hacking", "Hacking"),
("peachsunset", "Peach sunset"),
2022-02-13 23:06:16 +01:00
("wdka", "WdkA"),
],
)
2022-03-19 16:19:51 +01:00
save = SubmitField("Save")