proxadmin/app/vmanager/forms.py

10 lines
416 B
Python
Raw Normal View History

2017-03-08 13:53:09 -05:00
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField, SelectField, DecimalField
from wtforms import validators, ValidationError
class ActivateForm(FlaskForm):
2017-09-14 20:28:26 -04:00
period = SelectField('Deploy Period', choices=[(1, '1 Month'), (2, '2 Months'), (3, '3 Months'), (6, '6 Months'), (12, '1 Year'), (24, '2 Years')], coerce=int)
submit = SubmitField('Activate')
2017-08-01 07:21:22 -04:00