mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-04 18:23:29 +02:00
Change fields passed to ao context to only the releveant ones
This commit is contained in:
parent
9678801787
commit
0f53fb7c68
2 changed files with 14 additions and 13 deletions
|
@ -13,27 +13,27 @@
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="ao_example">
|
<div class="ao_example">
|
||||||
{% if application.organization_type == 'federal' %}
|
{% if is_federal %}
|
||||||
{% if application.federal_type == 'executive' %}
|
{% if federal_type == 'executive' %}
|
||||||
{% include "includes/ao_example__exec.html" %}
|
{% include "includes/ao_example__exec.html" %}
|
||||||
{% elif application.federal_type == 'judicial' %}
|
{% elif federal_type == 'judicial' %}
|
||||||
{% include "includes/ao_example__judicial.html" %}
|
{% include "includes/ao_example__judicial.html" %}
|
||||||
{% elif application.federal_type == 'legislative' %}
|
{% elif federal_type == 'legislative' %}
|
||||||
{% include "includes/ao_example__legislative.html" %}
|
{% include "includes/ao_example__legislative.html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif application.organization_type == 'city' %}
|
{% elif organization_type == 'city' %}
|
||||||
{% include "includes/ao_example__city.html" %}
|
{% include "includes/ao_example__city.html" %}
|
||||||
{% elif application.organization_type == 'county' %}
|
{% elif organization_type == 'county' %}
|
||||||
{% include "includes/ao_example__county.html" %}
|
{% include "includes/ao_example__county.html" %}
|
||||||
{% elif application.organization_type == 'interstate' %}
|
{% elif organization_type == 'interstate' %}
|
||||||
{% include "includes/ao_example__interstate.html" %}
|
{% include "includes/ao_example__interstate.html" %}
|
||||||
{% elif application.organization_type == 'school_district' %}
|
{% elif organization_type == 'school_district' %}
|
||||||
{% include "includes/ao_example__school-district.html" %}
|
{% include "includes/ao_example__school-district.html" %}
|
||||||
{% elif application.organization_type == 'special_district' %}
|
{% elif organization_type == 'special_district' %}
|
||||||
{% include "includes/ao_example__special-district.html" %}
|
{% include "includes/ao_example__special-district.html" %}
|
||||||
{% elif application.organization_type == 'state_or_territory' %}
|
{% elif organization_type == 'state_or_territory' %}
|
||||||
{% include "includes/ao_example__state-territory.html" %}
|
{% include "includes/ao_example__state-territory.html" %}
|
||||||
{% elif application.organization_type == 'tribal' %}
|
{% elif organization_type == 'tribal' %}
|
||||||
{% include "includes/ao_example__tribal.html" %}
|
{% include "includes/ao_example__tribal.html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -367,8 +367,9 @@ class AuthorizingOfficial(ApplicationWizard):
|
||||||
|
|
||||||
def get_context_data(self):
|
def get_context_data(self):
|
||||||
context = super().get_context_data()
|
context = super().get_context_data()
|
||||||
context["Step"] = Step.__members__
|
context["is_federal"] = self.application.is_federal()
|
||||||
context["application"] = self.application
|
context["organization_type"] = self.application.organization_type
|
||||||
|
context["federal_type"] = self.application.federal_type
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue