mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-11 15:04:49 +02:00
trying another way to get rid of asterisk in one-field forms
This commit is contained in:
parent
eaaf8e16d4
commit
9773abe127
2 changed files with 5 additions and 8 deletions
|
@ -170,14 +170,10 @@ class TribalGovernmentForm(RegistrarForm):
|
||||||
)
|
)
|
||||||
|
|
||||||
tribe_name = forms.CharField(
|
tribe_name = forms.CharField(
|
||||||
label1="What is the name of the tribe you represent? ",
|
label="What is the name of the tribe you represent? ",
|
||||||
label2="*",
|
|
||||||
label={label1+label2},
|
|
||||||
error_messages={"required": "Enter the tribe you represent."},
|
error_messages={"required": "Enter the tribe you represent."},
|
||||||
)
|
)
|
||||||
|
|
||||||
tribe_name.widget.attrs.update({"class": "no_asterisk"})
|
|
||||||
|
|
||||||
def clean(self):
|
def clean(self):
|
||||||
"""Needs to be either state or federally recognized."""
|
"""Needs to be either state or federally recognized."""
|
||||||
if not (self.cleaned_data["federally_recognized_tribe"] or self.cleaned_data["state_recognized_tribe"]):
|
if not (self.cleaned_data["federally_recognized_tribe"] or self.cleaned_data["state_recognized_tribe"]):
|
||||||
|
|
|
@ -7,9 +7,10 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ field.label }}
|
{{ field.label }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<!---
|
|
||||||
{% if widget.attrs.required %}
|
{% if widget.attrs.required %}
|
||||||
<abbr class="usa-hint usa-hint--required" title="required">*</abbr>
|
{% if widget.label != "What is the name of the tribe you represent? " %}
|
||||||
|
<abbr class="usa-hint usa-hint--required" title="required">*</abbr>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
-->
|
|
||||||
</{{ label_tag }}>
|
</{{ label_tag }}>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue