-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathforms.py
48 lines (39 loc) · 1.78 KB
/
forms.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
from flask_wtf import FlaskForm
from wtforms import *
from wtforms.validators import *
from wtforms.fields import *
from werkzeug.utils import secure_filename
class LoginForm(FlaskForm):
username = StringField('Username', validators=[DataRequired()])
password = PasswordField('Password', validators=[DataRequired()])
submit = SubmitField('Sign In')
class AddEventForm(FlaskForm):
eventname = StringField('Event Name', validators = [DataRequired()])
eventroute = StringField('Event Route', validators = [DataRequired()])
submit = SubmitField('Submit')
class SetIPsForm(FlaskForm):
ips = StringField('Ips', validators = [DataRequired()])
submit = SubmitField('Submit')
class SetFormNames(FlaskForm):
form_name = StringField('Form Name', validators = [DataRequired()])
folder_name = StringField('Folder Name', validators = [DataRequired()])
submit = SubmitField('Submit')
class SetPasswdsNames(FlaskForm):
title = StringField('Title', validators = [DataRequired()])
passwd = StringField('Password', validators = [DataRequired()])
submit = SubmitField('Submit')
class SetUploadFilesForms(FlaskForm):
file_name = StringField('File Name with extension', validators = [DataRequired()])
file = FileField('File Upload', validators = [DataRequired()])
submit = SubmitField('Submit')
class TSTSetupForm(FlaskForm):
subname = StringField('Subject Name', validators = [DataRequired()])
answers = StringField('Answers', validators = [DataRequired()])
passwd = StringField('Jar Password', validators = [DataRequired()])
submit = SubmitField('Submit')
class TSTUploadForm(FlaskForm):
tst_file = FileField('TST Upload', validators = [DataRequired()])
submit = SubmitField('Submit')
class SetTeamsForm(FlaskForm):
teams = TextAreaField('Teams', render_kw={"rows": 5, "cols": 40})
submit = SubmitField('Submit')