proxadmin/app/admin/forms.py

14 lines
490 B
Python
Raw Normal View History

2017-06-04 11:22:59 -04:00
import string
import random
from ..models import User, Role
from flask_wtf import FlaskForm, RecaptchaField
from wtforms import StringField, PasswordField, BooleanField, SubmitField, SelectField, DecimalField
from wtforms import validators, ValidationError
from wtforms.fields.html5 import EmailField
class ChargeForm(FlaskForm):
2017-06-06 09:49:32 -04:00
amount = DecimalField('Стойност:', [validators.DataRequired(), validators.NumberRange(min=1, max=500)])
2017-06-04 11:22:59 -04:00
submit = SubmitField('Зареди')