trying another way to get rid of asterisk in one-field forms

This commit is contained in:
Kristina Yin 2023-11-22 09:59:22 -08:00
parent c490cec333
commit 3ad42bf42e
No known key found for this signature in database
GPG key ID: 9BB3845BB3A21584
2 changed files with 7 additions and 5 deletions

View file

@ -610,7 +610,8 @@ class NoOtherContactsForm(RegistrarForm):
required=True,
# label has to end in a space to get the label_suffix to show
label=(
"Please explain why there are no other employees from your organization we can contact to help us assess your eligibility for a .gov domain."
"Please explain why there are no other employees from your organization "
"we can contact to help us assess your eligibility for a .gov domain."
),
widget=forms.Textarea(),
)

View file

@ -7,8 +7,9 @@
{% else %}
{{ field.label }}
{% endif %}
{% if widget.attrs.required %}
{% if field.label != "I read and agree to the requirements for operating .gov domains." %}
{% if field.label == "I read and agree to the requirements for operating .gov domains." %}
<abbr class="usa-hint usa-hint--required" title="required">*</abbr>
{% endif %}
{% endif %}