-
Notifications
You must be signed in to change notification settings - Fork 2
/
forms.py
35 lines (26 loc) · 961 Bytes
/
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
from flask_wtf import Form
from wtforms import TextField, IntegerField
from wtforms.validators import DataRequired, Length
class add_student(Form):
student_name = TextField(
'Student Name', validators=[DataRequired(), Length(min=6, max=25)]
)
academics = IntegerField(
'Academics Score', validators=[DataRequired(), Length(min=2, max=25)]
)
sports = IntegerField(
'Sports Score', validators=[DataRequired(), Length(min=2, max=25)]
)
social = IntegerField(
'Social Score', validators=[DataRequired(), Length(min=2, max=25)]
)
class Update_student_info(Form):
academics = IntegerField(
'Academics Score', validators=[DataRequired(), Length(min=2, max=25)]
)
sports = IntegerField(
'Sports Score', validators=[DataRequired(), Length(min=2, max=25)]
)
social = IntegerField(
'Social Score', validators=[DataRequired(), Length(min=2, max=25)]
)