Reverting back to step 1 where we are just changing the information within the form

This commit is contained in:
Rebecca Hsieh 2023-09-04 11:34:46 -07:00
parent 482d900f57
commit 28a80ace36
No known key found for this signature in database
GPG key ID: 644527A2F375A379
2 changed files with 25 additions and 25 deletions

View file

@ -311,27 +311,13 @@ class OrganizationContactForm(RegistrarForm):
class TypeOfWorkForm(RegistrarForm):
# TO DO:
# 1. Confirm it's required
# 2. Even if it is required, the label seems to be reading from somewhere and not hiding itself
# 3. Fix all emails to be - about your organization but we need to fix title somehow
type_of_work = forms.CharField(
# label has to end in a space to get the label_suffix to show
label="What type of work does your organization do? ",
widget=forms.Textarea(),
validators=[
MaxLengthValidator(
1000,
message="Response must be less than 1000 characters.",
)
],
error_messages={"required": "Enter the type of work your organization does."},
)
more_organization_information = forms.CharField(
# label has to end in a space to get the label_suffix to show
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. "
),
required=False,
label="TypeOfWork",
widget=forms.Textarea(),
validators=[
MaxLengthValidator(
@ -339,14 +325,12 @@ class TypeOfWorkForm(RegistrarForm):
message="Response must be less than 1000 characters.",
)
],
# Confirm if this error message wording is ok, prev was "Enter the type of work your organization does."
error_messages={
"required": (
"Describe how your organization is independent of a state government."
)
"required": ("Enter information about your organization.")
},
)
class AuthorizingOfficialForm(RegistrarForm):
def to_database(self, obj):
if not self.is_valid():