Adding more validation
This commit is contained in:
@@ -71,9 +71,9 @@ class FinancialForm(ValidatedForm):
|
||||
|
||||
pe_id = StringField("Program Element (PE) Number related to your request", validators=[Required()])
|
||||
|
||||
treasury_code = StringField("Program Treasury Code")
|
||||
treasury_code = StringField("Program Treasury Code", validators=[Required()])
|
||||
|
||||
ba_code = StringField("Program BA Code")
|
||||
ba_code = StringField("Program BA Code", validators=[Required()])
|
||||
|
||||
fname_co = StringField("Contracting Officer First Name", validators=[Required()])
|
||||
lname_co = StringField("Contracting Officer Last Name", validators=[Required()])
|
||||
@@ -107,6 +107,7 @@ class FinancialForm(ValidatedForm):
|
||||
("PROC", "Procurement (PROC)"),
|
||||
("OTHER", "Other"),
|
||||
],
|
||||
validators=[Required()]
|
||||
)
|
||||
|
||||
funding_type_other = StringField(
|
||||
|
@@ -20,7 +20,7 @@ class POCForm(ValidatedForm):
|
||||
|
||||
|
||||
am_poc = BooleanField(
|
||||
"I am the Workspace Owner.",
|
||||
"I am the Workspace Owner",
|
||||
default=False,
|
||||
false_values=(False, "false", "False", "no", "")
|
||||
)
|
||||
|
@@ -85,11 +85,13 @@ class RequestForm(ValidatedForm):
|
||||
("US Transportation Command (USTRANSCOM)", "US Transportation Command (USTRANSCOM)"),
|
||||
("Washington Headquarters Services", "Washington Headquarters Services"),
|
||||
],
|
||||
validators=[Required()]
|
||||
)
|
||||
|
||||
jedi_usage = TextAreaField(
|
||||
"JEDI Usage",
|
||||
description="Your answer will help us provide tangible examples to DoD leadership how and why commercial cloud resources are accelerating the Department's missions",
|
||||
validators=[Required()]
|
||||
)
|
||||
|
||||
|
||||
@@ -195,5 +197,7 @@ class RequestForm(ValidatedForm):
|
||||
)
|
||||
|
||||
start_date = DateField(
|
||||
description="When do you expect to start using the JEDI Cloud (not for billing purposes)?"
|
||||
description="When do you expect to start using the JEDI Cloud (not for billing purposes)?",
|
||||
validators=[
|
||||
Required()]
|
||||
)
|
||||
|
Reference in New Issue
Block a user