blob: 2c5bcaa8d764b2fcc64593d990235c35148489a1 (
plain)
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
|
# -*- mode: python; -*-
from flask_wtf import FlaskForm
from wtforms import (
SubmitField,
SelectField,
HiddenField,
StringField,
PasswordField,
IntegerField,
FloatField,
BooleanField,
DateTimeField,
)
from wtforms.validators import InputRequired, Length, NumberRange
class AddCustomer(FlaskForm):
name = StringField("Customer name", validators=[InputRequired()])
name_alternative = StringField("Alternative name")
# date_time_created = DateTimeField("Creation date")
code_customer = StringField("Customer code")
code_accounting = StringField("Accounting code")
address = StringField("Address")
postal_code = StringField("Postal Code")
city = StringField("City")
country = StringField("Country")
phone = StringField("Phone")
website = StringField("Website")
email = StringField("E-mail")
professional_id_1 = StringField("Professional ID 1")
professional_id_2 = StringField("Professional ID 2")
tax_id = StringField("Tax ID")
payment_terms = StringField("Payment Terms", default="Tu vas payer sale chien!")
submit = SubmitField("Add/Update Product")
|