mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-14 13:34:10 +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):
|
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(
|
type_of_work = forms.CharField(
|
||||||
# label has to end in a space to get the label_suffix to show
|
required=False,
|
||||||
label="What type of work does your organization do? ",
|
label="TypeOfWork",
|
||||||
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. "
|
|
||||||
),
|
|
||||||
widget=forms.Textarea(),
|
widget=forms.Textarea(),
|
||||||
validators=[
|
validators=[
|
||||||
MaxLengthValidator(
|
MaxLengthValidator(
|
||||||
|
@ -339,14 +325,12 @@ class TypeOfWorkForm(RegistrarForm):
|
||||||
message="Response must be less than 1000 characters.",
|
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={
|
error_messages={
|
||||||
"required": (
|
"required": ("Enter information about your organization.")
|
||||||
"Describe how your organization is independent of a state government."
|
|
||||||
)
|
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class AuthorizingOfficialForm(RegistrarForm):
|
class AuthorizingOfficialForm(RegistrarForm):
|
||||||
def to_database(self, obj):
|
def to_database(self, obj):
|
||||||
if not self.is_valid():
|
if not self.is_valid():
|
||||||
|
|
|
@ -2,9 +2,25 @@
|
||||||
{% load field_helpers %}
|
{% load field_helpers %}
|
||||||
|
|
||||||
|
|
||||||
|
{% block form_instructions %}
|
||||||
|
<p>[For special districts, interstate governments]</p>
|
||||||
|
<p>We’d like to know more about your organization. Include the following in your response: </p>
|
||||||
|
|
||||||
|
<ul class="usa-list">
|
||||||
|
<li>The type of work your organization does </li>
|
||||||
|
<li>How your organization is a government organization that is independent of a state government </li>
|
||||||
|
<li>Include links to authorizing legislation, applicable bylaws or charter, or other documentation to support your claims.</li>
|
||||||
|
</ul>
|
||||||
|
</p>
|
||||||
|
<p class="text-semibold"><abbr class="usa-hint usa-hint--required" title="required">*</abbr> This question is required.</p>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block form_required_fields_help_text %}
|
||||||
|
{# empty this block so it doesn't show on this page #}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block form_fields %}
|
{% block form_fields %}
|
||||||
{% with attr_maxlength=1000 %}
|
{% with attr_maxlength=1000 %}
|
||||||
{% input_with_errors forms.0.type_of_work %}
|
{% input_with_errors forms.0.type_of_work %}
|
||||||
{% input_with_errors forms.0.more_organization_information %}
|
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue