mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 18:09:25 +02:00
currrent thing
This commit is contained in:
parent
5cd0a34b3b
commit
436809f711
6 changed files with 24 additions and 7 deletions
|
@ -1694,14 +1694,15 @@ class DomainRequestAdmin(ListHeaderAdmin, ImportExportModelAdmin):
|
||||||
"last_submitted_date",
|
"last_submitted_date",
|
||||||
"last_status_update",
|
"last_status_update",
|
||||||
"status",
|
"status",
|
||||||
"generic_org_type",
|
|
||||||
"federal_type",
|
"federal_type",
|
||||||
"federal_agency",
|
"federal_agency",
|
||||||
"organization_name",
|
|
||||||
"custom_election_board",
|
"custom_election_board",
|
||||||
"city",
|
"city",
|
||||||
"state_territory",
|
"state_territory",
|
||||||
"investigator",
|
"investigator",
|
||||||
|
"get_generic_org_type",
|
||||||
|
"get_organization_name",
|
||||||
|
"organization_name"
|
||||||
]
|
]
|
||||||
|
|
||||||
orderable_fk_fields = [
|
orderable_fk_fields = [
|
||||||
|
|
|
@ -1334,3 +1334,19 @@ class DomainRequest(TimeStampedModel):
|
||||||
if not is_complete or not self._is_general_form_complete(request):
|
if not is_complete or not self._is_general_form_complete(request):
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
@property
|
||||||
|
def get_organization_name(self):
|
||||||
|
""""returns the organization field if the domain request is in a portfolio
|
||||||
|
otherwise it returns the organization name from the domain request object itself"""
|
||||||
|
if self.portfolio:
|
||||||
|
return self.portfolio.organization_name
|
||||||
|
return self.organization_name
|
||||||
|
|
||||||
|
@property
|
||||||
|
def get_generic_org_type(self):
|
||||||
|
""""returns the organization type if the domain request is in a portfolio
|
||||||
|
otherwise it returns the organization type from the domain request object itself"""
|
||||||
|
if self.portfolio:
|
||||||
|
return self.portfolio.organization_type
|
||||||
|
return self.generic_org_type
|
|
@ -173,7 +173,7 @@
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if DomainRequest.organization_name %}
|
{% if DomainRequest.get_organization_name %}
|
||||||
{% include "includes/summary_item.html" with title='Organization' value=DomainRequest address='true' heading_level=heading_level %}
|
{% include "includes/summary_item.html" with title='Organization' value=DomainRequest address='true' heading_level=heading_level %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
{% if organization.federal_agency %}
|
{% if organization.federal_agency %}
|
||||||
{{ organization.federal_agency }}<br />
|
{{ organization.federal_agency }}<br />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if organization.organization_name %}
|
{% if organization.get_organization_name %}
|
||||||
{{ organization.organization_name }}
|
{{ organization.get_organization_name }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if organization.address_line1 %}
|
{% if organization.address_line1 %}
|
||||||
<br />{{ organization.address_line1 }}
|
<br />{{ organization.address_line1 }}
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if step == Step.ORGANIZATION_CONTACT %}
|
{% if step == Step.ORGANIZATION_CONTACT %}
|
||||||
{% if domain_request.organization_name %}
|
{% if domain_request.get_organization_name %}
|
||||||
{% with title=form_titles|get_item:step value=domain_request %}
|
{% with title=form_titles|get_item:step value=domain_request %}
|
||||||
{% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=is_editable edit_link=domain_request_url address='true' %}
|
{% include "includes/summary_item.html" with title=title value=value heading_level=heading_level editable=is_editable edit_link=domain_request_url address='true' %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
|
@ -173,7 +173,7 @@
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if DomainRequest.organization_name %}
|
{% if DomainRequest.get_organization_name %}
|
||||||
{% include "includes/summary_item.html" with title='Organization' value=DomainRequest address='true' heading_level=heading_level %}
|
{% include "includes/summary_item.html" with title='Organization' value=DomainRequest address='true' heading_level=heading_level %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue