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, required=True,
# label has to end in a space to get the label_suffix to show # label has to end in a space to get the label_suffix to show
label=( 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(), widget=forms.Textarea(),
) )

View file

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