netclock/countdown/forms.py
Armin Friedl 142ff73e01
All checks were successful
continuous-integration/drone/push Build is passing
Style countdown creation
2020-09-13 20:04:03 +02:00

12 lines
672 B
Python

from flask_wtf import FlaskForm
from wtforms import fields
from wtforms.fields import html5
from wtforms.validators import Optional
class CountdownAdminForm(FlaskForm):
hours = fields.IntegerField("Hours", [Optional()],
render_kw = {"min":0, "max":999, "placeholder": "00", "autocomplete": "off"})
minutes = fields.IntegerField("Minutes", [Optional()],
render_kw = {"min":0, "max":59, "placeholder": "00", "autocomplete": "off"})
seconds = fields.IntegerField("Seconds", [Optional()],
render_kw = {"min":0, "max":59, "placeholder": "00", "autocomplete": "off"})