mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-09 22:14:43 +02:00
Add Type of Work section for special districts/interstate orgs
This commit is contained in:
parent
f30b83f904
commit
8b76490794
8 changed files with 311 additions and 3 deletions
|
@ -151,7 +151,7 @@ class OrganizationContactForm(RegistrarForm):
|
|||
raise forms.ValidationError(
|
||||
"Please select your federal agency.", code="required"
|
||||
)
|
||||
if self.application.is_federal:
|
||||
if self.application.is_federal():
|
||||
if not federal_agency:
|
||||
# no answer was selected
|
||||
raise forms.ValidationError(
|
||||
|
@ -160,6 +160,17 @@ class OrganizationContactForm(RegistrarForm):
|
|||
return federal_agency
|
||||
|
||||
|
||||
class TypeOfWorkForm(RegistrarForm):
|
||||
type_of_work = forms.CharField(
|
||||
label="What type of work does your organization do?", widget=forms.Textarea()
|
||||
)
|
||||
|
||||
more_organization_information = forms.CharField(
|
||||
label="Describe how your organization is a government organization that is independent of a state government. Include links to authorizing legislation, applicable bylaws or charter, or other documentation to support your claims.",
|
||||
widget=forms.Textarea(),
|
||||
)
|
||||
|
||||
|
||||
class AuthorizingOfficialForm(RegistrarForm):
|
||||
def to_database(self, obj):
|
||||
if not self.is_valid():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue