-
Notifications
You must be signed in to change notification settings - Fork 0
/
forms.py
47 lines (40 loc) · 1.71 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
from wtforms import StringField, TextAreaField, DateTimeField, IntegerField
from wtforms.validators import DataRequired
from flask_wtf import FlaskForm
class CustomerForm(FlaskForm):
name = StringField('Namn', validators=[DataRequired()])
contact = StringField('Kontaktperson')
phone = StringField('Telefon')
email = StringField('E-post')
notes = TextAreaField('Anteckningar')
invoice_row1 = StringField('Address')
invoice_row2 = StringField('')
invoice_zip_code = StringField('Postkod')
invoice_post_town = StringField('Postort')
visitation_row1 = StringField('Address')
visitation_row2 = StringField('')
visitation_zip_code = StringField('Postkod')
visitation_post_town = StringField('Postort')
class PromemoriaForm(FlaskForm):
name = StringField('Namn', validators=[DataRequired()])
contact = StringField('Kontaktperson')
phone = StringField('Telefon')
email = StringField('E-post')
notes = TextAreaField('Anteckningar')
invoice_row1 = StringField('Address')
invoice_row2 = StringField('')
invoice_zip_code = StringField('Postkod')
invoice_post_town = StringField('Postort')
visitation_row1 = StringField('Address')
visitation_row2 = StringField('')
visitation_zip_code = StringField('Postkod')
visitation_post_town = StringField('Postort')
due = DateTimeField('Datum/Tid', format='%Y-%m-%d %H:%M')
number_guests = IntegerField('Antal gäster')
menu = TextAreaField('Meny')
allergies = TextAreaField('Allergier')
created_by = StringField('Mottagen av')
delivery_type = StringField('Leveranstyp')
staff = StringField('Personal på plats')
rental = StringField('Hyrgods')
misc = TextAreaField('Övrigt')