Skip to content

Commit

Permalink
added senior official
Browse files Browse the repository at this point in the history
  • Loading branch information
asaki222 committed Oct 31, 2024
1 parent 9349676 commit 1a2d56e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions src/registrar/models/domain_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -1401,3 +1401,12 @@ def converted_urbanization(self):
if self.portfolio:
return self.portfolio.urbanization
return self.urbanization

@property
def converted_senior_official(self):
if self.portfolio:
return self.portfolio.senior_official
else:
return self.senior_official


Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ <h2 class="text-primary-darker"> Summary of your domain request </h2>
{% include "includes/summary_item.html" with title='About your organization' value=DomainRequest.about_your_organization heading_level=heading_level %}
{% endif %}

{% if DomainRequest.senior_official %}
{% include "includes/summary_item.html" with title='Senior official' value=DomainRequest.senior_official contact='true' heading_level=heading_level %}
{% if DomainRequest.converted_senior_official %}
{% include "includes/summary_item.html" with title='Senior official' value=DomainRequest.converted_senior_official contact='true' heading_level=heading_level %}
{% endif %}

{% if DomainRequest.current_websites.all %}
Expand Down
4 changes: 2 additions & 2 deletions src/registrar/templates/includes/request_status_manage.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ <h2 class="text-primary-darker"> Summary of your domain request </h2>
{% include "includes/summary_item.html" with title='About your organization' value=DomainRequest.about_your_organization heading_level=heading_level %}
{% endif %}

{% if DomainRequest.senior_official %}
{% include "includes/summary_item.html" with title='Senior official' value=DomainRequest.senior_official contact='true' heading_level=heading_level %}
{% if DomainRequest.converted_senior_official %}
{% include "includes/summary_item.html" with title='Senior official' value=DomainRequest.converted_senior_official contact='true' heading_level=heading_level %}
{% endif %}

{% if DomainRequest.current_websites.all %}
Expand Down

0 comments on commit 1a2d56e

Please sign in to comment.