mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-11 23:14:49 +02:00
Fix double star required bug
This commit is contained in:
parent
a4adb5ed46
commit
370480572e
2 changed files with 6 additions and 8 deletions
|
@ -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(
|
||||||
|
|
|
@ -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 %}
|
Loading…
Add table
Add a link
Reference in a new issue