mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-01 15:34:53 +02:00
Reverting back to step 1 where we are just changing the information within the form
This commit is contained in:
parent
482d900f57
commit
28a80ace36
2 changed files with 25 additions and 25 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue