Update org contact with all fields

This commit is contained in:
igorkorenfeld 2022-11-07 19:15:57 -05:00
parent 1974ac6b07
commit 7f2df61bf8
No known key found for this signature in database
GPG key ID: 826947A4B867F659
2 changed files with 17 additions and 7 deletions

View file

@ -61,9 +61,12 @@ class OrganizationForm(forms.Form):
) )
class ContactForm(forms.Form): class OrgContactForm(forms.Form):
organization_name = forms.CharField(label="Organization Name") organization_name = forms.CharField(label="Organization Name")
street_address = forms.CharField(label="Street address") address_line1 = forms.CharField(label="Address line 1")
address_line2 = forms.CharField(label="Address line 2")
us_state = forms.CharField(label="State")
zipcode = forms.CharField(label="ZIP code")
class AuthorizingOfficialForm(forms.Form): class AuthorizingOfficialForm(forms.Form):
given_name = forms.CharField(label="First name/given name") given_name = forms.CharField(label="First name/given name")
@ -105,7 +108,7 @@ class YourContactForm(forms.Form):
# subclass # subclass
FORMS = [ FORMS = [
("organization", OrganizationForm), ("organization", OrganizationForm),
("org_contact", ContactForm), ("org_contact", OrgContactForm),
("authorizing_official", AuthorizingOfficialForm), ("authorizing_official", AuthorizingOfficialForm),
("current_sites", CurrentSitesForm), ("current_sites", CurrentSitesForm),
("dotgov_domain", DotGovDomainForm), ("dotgov_domain", DotGovDomainForm),
@ -128,8 +131,8 @@ TEMPLATES = {
# We need to pass our page titles as context to the templates, indexed # We need to pass our page titles as context to the templates, indexed
# by the step names # by the step names
TITLES = { TITLES = {
"organization": "About your organization", "organization": "Type of organization",
"org_contact": "Your organization's contact information", "org_contact": "Organization name and mailing address",
"authorizing_official": "Authorizing official", "authorizing_official": "Authorizing official",
"current_sites": "Organization website", "current_sites": "Organization website",
"dotgov_domain": ".gov domain", "dotgov_domain": ".gov domain",

View file

@ -25,8 +25,15 @@ of a larger entity. If so, enter information about your part of the larger entit
{{ wizard.form.organization_name|add_class:"usa-input"|attr:"aria-describedby:instructions" }} {{ wizard.form.organization_name|add_class:"usa-input"|attr:"aria-describedby:instructions" }}
<fieldset class="usa-fieldset"> <fieldset class="usa-fieldset">
{{ wizard.form.street_address|add_label_class:"usa-label" }} {{ wizard.form.address_line1|add_label_class:"usa-label" }}
{{ wizard.form.street_address|add_class:"usa-input" }} {{ wizard.form.address_line1|add_class:"usa-input" }}
{{ wizard.form.address_line2|add_label_class:"usa-label" }}
{{ wizard.form.address_line2|add_class:"usa-input" }}
{{ wizard.form.us_state|add_label_class:"usa-label" }}
{{ wizard.form.us_state|add_class:"usa-input" }}
{{ wizard.form.zipcode|add_label_class:"usa-label" }}
{{ wizard.form.zipcode|add_class:"usa-input" }}
</fieldset> </fieldset>
{{ block.super }} {{ block.super }}