mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-09 22:14:43 +02:00
trying a different approach
This commit is contained in:
parent
4c7cdf323f
commit
81b7bac482
3 changed files with 29 additions and 47 deletions
|
@ -170,7 +170,7 @@ class TribalGovernmentForm(RegistrarForm):
|
||||||
)
|
)
|
||||||
|
|
||||||
tribe_name = forms.CharField(
|
tribe_name = forms.CharField(
|
||||||
label="What is the name of the tribe you represent? ",
|
label="What is the name of the tribe you represent?",
|
||||||
error_messages={"required": "Enter the tribe you represent."},
|
error_messages={"required": "Enter the tribe you represent."},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,7 @@
|
||||||
{% load field_helpers %}
|
{% load field_helpers %}
|
||||||
|
|
||||||
{% block form_instructions %}
|
{% block form_instructions %}
|
||||||
<h2 class="margin-bottom-05">
|
<h2 class="margin-bottom-05">Is your organization an election office?</h2>
|
||||||
Is your organization an election office?
|
|
||||||
</h2>
|
|
||||||
|
|
||||||
<p>An election office is a government entity whose <em>primary</em> responsibility is overseeing elections and/or conducting voter registration.</p>
|
<p>An election office is a government entity whose <em>primary</em> responsibility is overseeing elections and/or conducting voter registration.</p>
|
||||||
|
|
||||||
|
|
|
@ -8,54 +8,38 @@
|
||||||
{{ field.label }}
|
{{ field.label }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<!--
|
||||||
{% if widget.attrs.required %}
|
{% if widget.attrs.required %}
|
||||||
<!-- Don't include asterisk in one-field forms -->
|
|
||||||
{% if field.label != "Is your organization an election office" %}
|
{% if field.label != "Is your organization an election office?" %}
|
||||||
{% if field.label != "What .gov domain do you want" %}
|
{% if field.label != "What .gov domain do you want?" %}
|
||||||
{% 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>
|
<abbr class="usa-hint usa-hint--required" title="required">*</abbr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--
|
|
||||||
{% if widget.attrs.required %}
|
|
||||||
{% if field.label == "What is the name of the tribe you represent? “ %}
|
|
||||||
<abbr class="usa-hint usa-hint--required" title="required">*</abbr>
|
|
||||||
{% endif %}
|
|
||||||
{% if field.label == "Organization name" %}
|
|
||||||
<abbr class="usa-hint usa-hint--required" title="required">*</abbr>
|
|
||||||
{% endif %}
|
|
||||||
{% if field.label == "Street address" %}
|
|
||||||
<abbr class="usa-hint usa-hint--required" title="required">*</abbr>
|
|
||||||
{% endif %}
|
|
||||||
{% if field.label == "City" %}
|
|
||||||
<abbr class="usa-hint usa-hint--required" title="required">*</abbr>
|
|
||||||
{% endif %}
|
|
||||||
{% if field.label == "State, territory, or military post" %}
|
|
||||||
<abbr class="usa-hint usa-hint--required" title="required">*</abbr>
|
|
||||||
{% endif %}
|
|
||||||
{% if field.label == "Zip code" %}
|
|
||||||
<abbr class="usa-hint usa-hint--required" title="required">*</abbr>
|
|
||||||
{% endif %}
|
|
||||||
{% if field.label == "First name / given name" %}
|
|
||||||
<abbr class="usa-hint usa-hint--required" title="required">*</abbr>
|
|
||||||
{% endif %}
|
|
||||||
{% if field.label == "Last name / family name" %}
|
|
||||||
<abbr class="usa-hint usa-hint--required" title="required">*</abbr>
|
|
||||||
{% endif %}
|
|
||||||
{% if field.label == "Title or role in your organization" %}
|
|
||||||
<abbr class="usa-hint usa-hint--required" title="required">*</abbr>
|
|
||||||
{% endif %}
|
|
||||||
{% if field.label == "Email" %}
|
|
||||||
<abbr class="usa-hint usa-hint--required" title="required">*</abbr>
|
|
||||||
{% endif %}
|
|
||||||
{% if field.label == "Phone" %}
|
|
||||||
<abbr class="usa-hint usa-hint--required" title="required">*</abbr>
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
{% if widget.attrs.required %}
|
||||||
|
{% for required_label in [
|
||||||
|
"What is the name of the tribe you represent?",
|
||||||
|
"Organization name",
|
||||||
|
"Street address",
|
||||||
|
"City",
|
||||||
|
"State, territory, or military post",
|
||||||
|
"Zip code",
|
||||||
|
"First name / given name",
|
||||||
|
"Last name / family name",
|
||||||
|
"Title or role in your organization",
|
||||||
|
"Email",
|
||||||
|
"Phone"
|
||||||
|
] %}
|
||||||
|
{% if field.label == required_label %}
|
||||||
|
<abbr class="usa-hint usa-hint--required" title="required"> *</abbr>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
</{{ label_tag }}>
|
</{{ label_tag }}>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue