Disable html5 validations temporarily
This commit is contained in:
parent
d563936944
commit
a008affb73
@ -8,14 +8,30 @@ from .validators import DateRange, PhoneNumber, Alphabet
|
|||||||
|
|
||||||
|
|
||||||
class OrgForm(ValidatedForm):
|
class OrgForm(ValidatedForm):
|
||||||
fname_request = StringField("First Name", validators=[Required(), Alphabet()])
|
fname_request = StringField(
|
||||||
lname_request = StringField("Last Name", validators=[Required(), Alphabet()])
|
"First Name",
|
||||||
|
# validators=[Required(), Alphabet()]
|
||||||
|
)
|
||||||
|
|
||||||
email_request = EmailField("Email Address", validators=[Required(), Email()])
|
lname_request = StringField(
|
||||||
|
"Last Name",
|
||||||
|
# validators=[Required(), Alphabet()]
|
||||||
|
)
|
||||||
|
|
||||||
phone_number = TelField("Phone Number", validators=[Required(), PhoneNumber()])
|
email_request = EmailField(
|
||||||
|
"Email Address",
|
||||||
|
# validators=[Required(), Email()]
|
||||||
|
)
|
||||||
|
|
||||||
service_branch = StringField("Service Branch or Agency", validators=[Required()])
|
phone_number = TelField(
|
||||||
|
"Phone Number",
|
||||||
|
# validators=[Required(), PhoneNumber()]
|
||||||
|
)
|
||||||
|
|
||||||
|
service_branch = StringField(
|
||||||
|
"Service Branch or Agency",
|
||||||
|
# validators=[Required()]
|
||||||
|
)
|
||||||
|
|
||||||
citizenship = RadioField(
|
citizenship = RadioField(
|
||||||
choices=[
|
choices=[
|
||||||
@ -23,7 +39,7 @@ class OrgForm(ValidatedForm):
|
|||||||
("Foreign National", "Foreign National"),
|
("Foreign National", "Foreign National"),
|
||||||
("Other", "Other"),
|
("Other", "Other"),
|
||||||
],
|
],
|
||||||
validators=[Required()],
|
# validators=[Required()],
|
||||||
)
|
)
|
||||||
|
|
||||||
designation = RadioField(
|
designation = RadioField(
|
||||||
@ -33,17 +49,17 @@ class OrgForm(ValidatedForm):
|
|||||||
("civilian", "Civilian"),
|
("civilian", "Civilian"),
|
||||||
("contractor", "Contractor"),
|
("contractor", "Contractor"),
|
||||||
],
|
],
|
||||||
validators=[Required()],
|
# validators=[Required()],
|
||||||
)
|
)
|
||||||
|
|
||||||
date_latest_training = DateField(
|
date_latest_training = DateField(
|
||||||
"Latest Information Assurance (IA) Training completion date.",
|
"Latest Information Assurance (IA) Training completion date.",
|
||||||
validators=[
|
# validators=[
|
||||||
Required(),
|
# Required(),
|
||||||
DateRange(
|
# DateRange(
|
||||||
lower_bound=pendulum.duration(years=1),
|
# lower_bound=pendulum.duration(years=1),
|
||||||
upper_bound=pendulum.duration(days=0),
|
# upper_bound=pendulum.duration(days=0),
|
||||||
message="Must be a date within the last year.",
|
# message="Must be a date within the last year.",
|
||||||
),
|
# ),
|
||||||
],
|
# ],
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user