-
Notifications
You must be signed in to change notification settings - Fork 0
/
forms.py
18 lines (16 loc) · 950 Bytes
/
forms.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from flask_wtf import FlaskForm, Form
from flask_wtf.file import FileField, FileRequired
from wtforms import StringField, IntegerField, TextAreaField, DateTimeField, BooleanField, SelectField, PasswordField, SubmitField
from wtforms.validators import DataRequired, Optional
class loginForm(FlaskForm):
mngrID = StringField('Enter User ID:', validators=[DataRequired()])
pswd = PasswordField('Enter password:', validators=[DataRequired()])
key = StringField('Enter Org Key', validators=[DataRequired()])
submit = SubmitField('Login')
class signupForm(FlaskForm):
mngrID = StringField('Enter Manager ID', validators=[DataRequired()])
pswd = PasswordField('Enter password:', validators=[DataRequired()])
cpswd = PasswordField('Confirm password:', validators=[DataRequired()])
emailID = StringField('Enter Email ID', validators=[DataRequired()])
key = StringField('Enter Org Key', validators=[DataRequired()])
submit = SubmitField('Register')