distribusi-verse/verse/forms/themeform.py

22 lines
506 B
Python
Raw Normal View History

"""Form object declaration."""
from flask_wtf import FlaskForm
from wtforms import (
RadioField,
SubmitField,
)
class ThemeForm(FlaskForm):
2022-03-20 11:24:33 +01:00
"""Basic theme selection form."""
2022-02-13 23:06:16 +01:00
theme = RadioField(
"Select your theme:",
choices=[
2022-03-19 22:00:06 +01:00
("hacking", "Hackers (black background, green text)"),
("peachsunset", "Peach sunset (single column)"),
("masonry", "Masonry (white background, grid layout)"),
],
)
2022-03-19 16:19:51 +01:00
save = SubmitField("Save")