Fix double star required bug

This commit is contained in:
Rebecca Hsieh 2023-09-06 09:28:19 -07:00
parent a4adb5ed46
commit 370480572e
No known key found for this signature in database
GPG key ID: 644527A2F375A379
2 changed files with 6 additions and 8 deletions

View file

@ -309,11 +309,10 @@ class OrganizationContactForm(RegistrarForm):
) )
return federal_agency return federal_agency
# TODO-446: Update name of form + variable naming # TODO-446: Update name of form + variable naming + change label
class TypeOfWorkForm(RegistrarForm): class TypeOfWorkForm(RegistrarForm):
type_of_work = forms.CharField( type_of_work = forms.CharField(
required=False, label="Type of work",
label="TypeOfWork",
widget=forms.Textarea(), widget=forms.Textarea(),
validators=[ validators=[
MaxLengthValidator( MaxLengthValidator(

View file

@ -13,16 +13,15 @@
<li>Include links to authorizing legislation, applicable bylaws or charter, or other documentation to support your claims.</li> <li>Include links to authorizing legislation, applicable bylaws or charter, or other documentation to support your claims.</li>
</ul> </ul>
</p> </p>
<p class="text-semibold"><abbr class="usa-hint usa-hint--required" title="required">*</abbr> This question is required.</p>
{% endblock %} {% endblock %}
{% block form_required_fields_help_text %} {% block form_required_fields_help_text %}
{# empty this block so it doesn't show on this page #} <p class="text-semibold"><abbr class="usa-hint usa-hint--required" title="required">*</abbr>This question is required.</p>
{% endblock %} {% endblock %}
<!-- TODO-446: Change name form name --> <!-- TODO-446: Change name form name -->
{% block form_fields %} {% block form_fields %}
{% with attr_maxlength=1000 %} {% with attr_maxlength=1000 add_label_class="usa-sr-only" %}
{% input_with_errors forms.0.type_of_work %} {% input_with_errors forms.0.type_of_work %}
{% endwith %} {% endwith %}
{% endblock %} {% endblock %}