-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforms.py
More file actions
executable file
·37 lines (33 loc) · 2.43 KB
/
Copy pathforms.py
File metadata and controls
executable file
·37 lines (33 loc) · 2.43 KB
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
from flask_wtf import Form
from wtforms import StringField, PasswordField, RadioField, SelectField, SubmitField, HiddenField
class SignupForm(Form):
firstname = StringField(u'First Name')
lastname = StringField(u'Last Name')
password = PasswordField(u'Password')
email = StringField(u'Your email address')
age = StringField(u'Age')
gender = RadioField(u'Gender', choices=[('Male', 'male'), ('Female', 'female')])
zipcode = StringField(u'Zip Code (so we can connect you with nearby users!)')
community = SelectField(u'Cancer Community', choices=[('survivor', 'Survivor'), ('cosurvivor', 'Co-Survivor'), ('metastatic', 'Metastatic')])
diagnosis = SelectField(u'Cancer Diagnosis', choices=[('none', 'None'),
('DCIS', 'Ductal Carcinoma In Situ'),
('IDC', 'Invasive Ductal Carcinoma'),
('tubular', 'Tubular Carcinoma of the Breast'),
('medullary', 'Medullary Carcinoma of the Breast'),
('mucinous', 'Mucinous Carcinoma of the Breast'),
('papillary', 'Papillary Carcinoma of the Breast'),
('cribriform', 'Cribriform Carcinoma of the Breast'),
('ILC', 'Invasive Lobular Carcinoma'),
('inflammatory', 'Inflammatory Breast Cancer'),
('LCIS', 'Lobular Carcinoma In Situ'),
('male', 'Male Breast Cancer'),
('paget', "Paget's Disease of the Nipple"),
('phyllodes', 'Phyllodes Tumors of the Breast'),
('metastatic', 'Recurrent & Metastatic Breast Cancer'),
])
bio = StringField(u'Short Bio')
submit = SubmitField(u'Signup')
class LoginForm(Form):
email = StringField(u'Your email address')
password = PasswordField(u'Password')
submit = SubmitField(u'Login')