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

20 lines
494 B
Python
Raw Normal View History

"""Form object declaration."""
2024-04-21 20:44:08 +02:00
from flask_wtf import FlaskForm
2024-04-21 20:44:08 +02:00
from wtforms import RadioField, SubmitField
class ThemeForm(FlaskForm):
2024-05-28 23:02:17 +02:00
"""Basic theme selection form."""
2022-02-13 23:06:16 +01:00
2024-05-28 23:02:17 +02:00
theme = RadioField(
"Select your theme:",
choices=[
("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
2024-05-28 23:02:17 +02:00
save = SubmitField("Save")