distribusi-verse/verse/distribusikan/forms/themeform.py

20 lines
494 B
Python

"""Form object declaration."""
from flask_wtf import FlaskForm
from wtforms import RadioField, SubmitField
class ThemeForm(FlaskForm):
"""Basic theme selection form."""
theme = RadioField(
"Select your theme:",
choices=[
("hacking", "Hackers (black background, green text)"),
("peachsunset", "Peach sunset (single column)"),
("masonry", "Masonry (white background, grid layout)"),
],
)
save = SubmitField("Save")