From 1a2d56e88b7094527959225ade1d6c4b1fb4b27e Mon Sep 17 00:00:00 2001 From: asaki222 Date: Thu, 31 Oct 2024 15:04:58 -0400 Subject: [PATCH] added senior official --- src/registrar/models/domain_request.py | 9 +++++++++ .../templates/includes/domain_request_status_manage.html | 4 ++-- .../templates/includes/request_status_manage.html | 4 ++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/registrar/models/domain_request.py b/src/registrar/models/domain_request.py index 1f9a50d99..511c49eb3 100644 --- a/src/registrar/models/domain_request.py +++ b/src/registrar/models/domain_request.py @@ -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 + + \ No newline at end of file diff --git a/src/registrar/templates/includes/domain_request_status_manage.html b/src/registrar/templates/includes/domain_request_status_manage.html index ed9bfc764..30a06b070 100644 --- a/src/registrar/templates/includes/domain_request_status_manage.html +++ b/src/registrar/templates/includes/domain_request_status_manage.html @@ -181,8 +181,8 @@

Summary of your domain request

{% 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 %} diff --git a/src/registrar/templates/includes/request_status_manage.html b/src/registrar/templates/includes/request_status_manage.html index 80389b393..4fd9341a8 100644 --- a/src/registrar/templates/includes/request_status_manage.html +++ b/src/registrar/templates/includes/request_status_manage.html @@ -181,8 +181,8 @@

Summary of your domain request

{% 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 %}