-
Notifications
You must be signed in to change notification settings - Fork 0
/
forms.py
executable file
·51 lines (43 loc) · 1.24 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
from flask_wtf import FlaskForm
from wtforms import StringField, validators, PasswordField, SubmitField, IntegerField, SelectField
class SignUpForm(FlaskForm):
email=StringField('Email')
name=StringField('Full Name')
password=StringField('Password')
creditCardNumber=StringField('Card number')
creditCardExpiration=StringField('Expiration mm/yy')
cardCVV=StringField('cvv')
submit=SubmitField('Complete')
class OrderFood(FlaskForm):
email=StringField('Email')
item = SelectField(
'Item',
choices=[
('Burrito', 'burrito'),
('Bowl', 'bowl'),
]
)
quantity=IntegerField(' Quantity')
type = SelectField(
'Rice & Tortilla',
choices=[
('Whole wheat tortilla/rice', 'whole wheat'),
('Regular', 'regular'),
]
)
pico = SelectField(
'Pico de Gallo',
choices=[
('Yes', 'yes'),
('No', 'no' ),
]
)
beans = SelectField(
'Beans',
choices=[
('Black beans', 'black'),
('Red beans', 'red'),
('No beans', 'none'),
]
)
submit=SubmitField('Order now')