2022-01-09 17:22:38 +01:00
|
|
|
"""Form object declaration."""
|
2024-04-21 20:44:08 +02:00
|
|
|
|
2022-01-09 17:22:38 +01:00
|
|
|
from flask_wtf import FlaskForm
|
2024-04-21 20:44:08 +02:00
|
|
|
from wtforms import RadioField, SubmitField
|
2022-01-09 17:22:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
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")
|