distribusi-verse/verse/forms/themeform.py

21 lines
417 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"),
],
)
save = SubmitField("Save")