proxadmin/app/smanager/forms.py

9 lines
442 B
Python
Raw Normal View History

2017-07-14 09:00:04 -04:00
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField, SelectField, DecimalField
from wtforms import validators, ValidationError
from wtforms.fields.html5 import EmailField
class ActivateForm(FlaskForm):
2017-07-15 20:48:18 -04:00
period = SelectField('Service Period', choices=[(1, '1 Month'), (3, '3 Months'), (6, '6 Months'), (12, '1 Year'), (24, '2 Years')], coerce=int)
2017-07-14 09:00:04 -04:00
submit = SubmitField('Activate')