putting back asterisks where they are needed, removing them on specific pages

This commit is contained in:
Kristina Yin 2023-11-22 14:15:29 -08:00
parent 339f9770e4
commit 991d7248a5
No known key found for this signature in database
GPG key ID: 9BB3845BB3A21584

View file

@ -8,9 +8,14 @@
{{ field.label }}
{% endif %}
<!-- One-field forms (pages that only have one question field) do not have an asterisk -->
{% if widget.attrs.required %}
{% if field.label == "I read and agree to the requirements for operating .gov domains." %}
<abbr class="usa-hint usa-hint--required" title="required">*</abbr>
{% if field.label != "I read and agree to the requirements for operating .gov domains." %}
{% if field.label != “What .gov domain do you want?” %}
{% if field.label != “"Is your organization an election office?"” %}
<abbr class="usa-hint usa-hint--required" title="required">*</abbr>
{% endif %}
{% endif %}
{% endif %}
{% endif %}