diff --git a/atst/forms/org.py b/atst/forms/org.py index ade4859b..b2bad0ee 100644 --- a/atst/forms/org.py +++ b/atst/forms/org.py @@ -10,27 +10,27 @@ from .validators import DateRange, PhoneNumber, Alphabet class OrgForm(ValidatedForm): fname_request = StringField( "First Name", - # validators=[Required(), Alphabet()] + validators=[Required(), Alphabet()] ) lname_request = StringField( "Last Name", - # validators=[Required(), Alphabet()] + validators=[Required(), Alphabet()] ) email_request = EmailField( "Email Address", - # validators=[Required(), Email()] + validators=[Required(), Email()] ) phone_number = TelField( "Phone Number", - # validators=[Required(), PhoneNumber()] + validators=[Required(), PhoneNumber()] ) service_branch = StringField( "Service Branch or Agency", - # validators=[Required()] + validators=[Required()] ) citizenship = RadioField( @@ -39,7 +39,7 @@ class OrgForm(ValidatedForm): ("Foreign National", "Foreign National"), ("Other", "Other"), ], - # validators=[Required()], + validators=[Required()], ) designation = RadioField( @@ -49,17 +49,17 @@ class OrgForm(ValidatedForm): ("civilian", "Civilian"), ("contractor", "Contractor"), ], - # validators=[Required()], + validators=[Required()], ) date_latest_training = DateField( - "Latest Information Assurance (IA) Training completion date.", - # validators=[ - # Required(), - # DateRange( - # lower_bound=pendulum.duration(years=1), - # upper_bound=pendulum.duration(days=0), - # message="Must be a date within the last year.", - # ), - # ], + "Latest Information Assurance (IA) Training completion date", + validators=[ + Required(), + DateRange( + lower_bound=pendulum.duration(years=1), + upper_bound=pendulum.duration(days=0), + message="Must be a date within the last year.", + ), + ], ) diff --git a/atst/forms/poc.py b/atst/forms/poc.py index 7d5388f2..48ab749b 100644 --- a/atst/forms/poc.py +++ b/atst/forms/poc.py @@ -8,20 +8,20 @@ from .validators import IsNumber, Alphabet class POCForm(ValidatedForm): fname_poc = StringField( "POC First Name", - # validators=[Required(), Alphabet()] + validators=[Required(), Alphabet()] ) lname_poc = StringField( "POC Last Name", - # validators=[Required(), Alphabet()] + validators=[Required(), Alphabet()] ) email_poc = EmailField( "POC Email Address", - # validators=[Required(), Email()] + validators=[Required(), Email()] ) dodid_poc = StringField( "DOD ID", - # validators=[Required(), Length(min=10), IsNumber()] + validators=[Required(), Length(min=10), IsNumber()] ) diff --git a/templates/requests/screen-4.html.to b/templates/requests/screen-4.html.to index 50760b7d..a1bec13b 100644 --- a/templates/requests/screen-4.html.to +++ b/templates/requests/screen-4.html.to @@ -1,86 +1,182 @@ {% extends '../requests_new.html.to' %} {% block subtitle %} -