-
Notifications
You must be signed in to change notification settings - Fork 2
/
forms.py
95 lines (76 loc) · 3.9 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField, BooleanField
from wtforms.validators import DataRequired, Length, Email, EqualTo
class SearchForm(FlaskForm):
job_fields = StringField('job search fields',
validators=[DataRequired()])
#location = StringField('Location (OPTIONAL)')
class RegistrationForm(FlaskForm):
username = StringField('Username',
validators=[DataRequired(), Length(min=2, max=20)])
password = PasswordField('Password', validators=[DataRequired()])
confirm_password = PasswordField('Confirm Password',
validators=[DataRequired(), EqualTo('password')])
submit = SubmitField('Sign Up')
class ResumeForm(FlaskForm):
name = StringField('Name*', validators=[DataRequired()])
title = StringField('Title*', validators=[DataRequired()])
email = StringField('Email*',
validators=[DataRequired(), Email()])
phone_number = StringField('Phone*', validators=[DataRequired(), Length(12)])
#education section with major and gpa
university = StringField('University*', validators=[DataRequired()])
university_location = StringField('University Location*', validators=[DataRequired()])
major = StringField('Major(s)*', validators=[DataRequired()])
submit = SubmitField('Build Resume')
# gpa = StringField('GPA')
# skill_title1 = StringField('Skill1', validators=[DataRequired()])
# skill_description1 = StringField('SkillDescription1', validators=[DataRequired()])
# skill_title2 = StringField('Skill2')
# skill_description2 = StringField('SkillDescription2')
# skill_title3 = StringField('Skill1')
# skill_description3 = StringField('SkillDescription3')
# #relevant skills
# relevant_skill1 = StringField('RelevantSkill1', validators=[DataRequired()])
# relevant_skill2 = StringField('RelevantSkill2', validators=[DataRequired()])
# relevant_skill3 = StringField('RelevantSkill3', validators=[DataRequired()])
# relevant_skill4 = StringField('RelevantSkill4')
# relevant_skill5 = StringField('RelevantSkill5')
# relevant_skill6 = StringField('RelevantSkill6')
# relevant_skill7 = StringField('RelevantSkill7')
# relevant_skill8 = StringField('RelevantSkill8')
# relevant_skill9 = StringField('RelevantSkill9')
# relevant_skill10 = StringField('RelevantSkill10')
# #professional exeperince section
# company1 = StringField('Company1')
# position1 = StringField('Position1')
# position_description1 = StringField('Description1')
# start_date1 = StringField('StartDate1')
# end_date1 = StringField('EndDate1')
# company2 = StringField('Company2')
# position2 = StringField('Position2')
# position_description2 = StringField('Description2')
# start_date2 = StringField('StartDate2')
# end_date2 = StringField('EndDate2')
# company3 = StringField('Company3')
# position3 = StringField('Position3')
# position_description3 = StringField('Description3')
# start_date3 = StringField('StartDate3')
# end_date3 = StringField('EndDate3')
# company4 = StringField('Company4')
# position4 = StringField('Position4')
# position_description4 = StringField('Description4')
# start_date4 = StringField('StartDate4')
# end_date4 = StringField('EndDate4')
# company5 = StringField('Company5')
# position5 = StringField('Position5')
# position_description5 = StringField('Description5')
# start_date5 = StringField('StartDate5')
# end_date5 = StringField('EndDate5')
# #Affiliations/Interests Tab
# affiliations = StringField('Affiliations')
# certifications = StringField('Certifications')
# awards = StringField('Awards')
# interests = StringField('Interests')
# publications = StringField('Publications')
# volunteer = StringField('Volunteer')