From ba2de84ff9504edbe6e978aa6e3c86741ae1f53a Mon Sep 17 00:00:00 2001 From: igorkorenfeld Date: Wed, 9 Nov 2022 16:52:39 -0500 Subject: [PATCH] Change org type button to usa-radio style --- src/registrar/forms/application_wizard.py | 2 +- .../templates/application_organization.html | 36 ++++++++++++------- .../templates/includes/radio_button.html | 14 ++++---- 3 files changed, 32 insertions(+), 20 deletions(-) diff --git a/src/registrar/forms/application_wizard.py b/src/registrar/forms/application_wizard.py index 5d25eb8fe..a9a14ea35 100644 --- a/src/registrar/forms/application_wizard.py +++ b/src/registrar/forms/application_wizard.py @@ -57,7 +57,7 @@ class OrganizationForm(forms.Form): ("Yes", "Yes"), ("No", "No"), ], - widget=forms.RadioSelect, + widget=forms.RadioSelect(attrs={"class":"usa-radio__input"}), ) diff --git a/src/registrar/templates/application_organization.html b/src/registrar/templates/application_organization.html index 4c562d96c..0775540a9 100644 --- a/src/registrar/templates/application_organization.html +++ b/src/registrar/templates/application_organization.html @@ -12,37 +12,49 @@ {% radio_buttons_by_value wizard.form.organization_type as choices %}
- +

What kind of government organization do you represent?

{{ wizard.form.organization_type.errors }} - {% include "includes/radio_button.html" with choice=choices.Federal %} - {% include "includes/radio_button.html" with choice=choices.Interstate %} - {% include "includes/radio_button.html" with choice=choices.State_or_Territory %} - {% include "includes/radio_button.html" with choice=choices.Tribal %} - {% include "includes/radio_button.html" with choice=choices.County %} - {% include "includes/radio_button.html" with choice=choices.City %} - {% include "includes/radio_button.html" with choice=choices.Special_District %} + {% include "includes/radio_button.html" with choice=choices.Federal tile="true" %} + {% include "includes/radio_button.html" with choice=choices.Interstate tile="true" %} + {% include "includes/radio_button.html" with choice=choices.State_or_Territory tile="true" %} + {% include "includes/radio_button.html" with choice=choices.Tribal tile="true" %} + {% include "includes/radio_button.html" with choice=choices.County tile="true" %} + {% include "includes/radio_button.html" with choice=choices.City tile="true" %} + {% include "includes/radio_button.html" with choice=choices.Special_District tile="true" %}
- +

Which federal branch does your organization belong to?

- {{ wizard.form.federal_type|add_class:"usa-radio" }} + {% radio_buttons_by_value wizard.form.federal_type as federal_choices %} + {% include "includes/radio_button.html" with choice=federal_choices.Executive%} + {% include "includes/radio_button.html" with choice=federal_choices.Judicial%} + {% include "includes/radio_button.html" with choice=federal_choices.Legislative%}
- +

Is your organization an election office?

- {{ wizard.form.is_election_board|add_class:"usa-radio" }} + {% for radio in wizard.form.is_election_board %} +
+ {{radio.tag}} + +
+ {% endfor %} + +
{{ block.super }} diff --git a/src/registrar/templates/includes/radio_button.html b/src/registrar/templates/includes/radio_button.html index 8f43547dd..85f64b831 100644 --- a/src/registrar/templates/includes/radio_button.html +++ b/src/registrar/templates/includes/radio_button.html @@ -1,14 +1,14 @@ -
- -
\ No newline at end of file + +