From 78ba5c78d7c1e8090694217bc93ea31fa9ca4fb5 Mon Sep 17 00:00:00 2001 From: CocoByte Date: Wed, 22 May 2024 15:26:10 -0600 Subject: [PATCH] Fixed context --- src/registrar/templates/domain_request_intro.html | 3 +-- src/registrar/views/domain_request.py | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/registrar/templates/domain_request_intro.html b/src/registrar/templates/domain_request_intro.html index 2db0177fb..2b941b48f 100644 --- a/src/registrar/templates/domain_request_intro.html +++ b/src/registrar/templates/domain_request_intro.html @@ -14,8 +14,7 @@

Time to complete the form

If you have all the information you need, completing your domain request might take around 15 minutes.

- - {% if has_profile_feature_flag == true %} + {% if has_profile_feature_flag %}

How we'll reach you

While reviewing your domain request, we may need to reach out with questions. We'll also email you when we complete our review If the contact information below is not correct, visit your profile to make updates.

{% include "includes/profile_information.html" with user=user%} diff --git a/src/registrar/views/domain_request.py b/src/registrar/views/domain_request.py index d08019592..9dcf183a2 100644 --- a/src/registrar/views/domain_request.py +++ b/src/registrar/views/domain_request.py @@ -230,7 +230,8 @@ class DomainRequestWizard(DomainRequestWizardPermissionView, TemplateView): if self.__class__ == DomainRequestWizard: if request.path_info == self.NEW_URL_NAME: context = self.get_context_data() - return render(request, "domain_request_intro.html") + logger.debug("CONTEXT profile flag is %s" % context["has_profile_feature_flag"]) + return render(request, "domain_request_intro.html", context=context) else: return self.goto(self.steps.first) @@ -388,6 +389,7 @@ class DomainRequestWizard(DomainRequestWizardPermissionView, TemplateView): modal_heading = "You are about to submit an incomplete request" has_profile_flag = flag_is_active(self.request, "profile_feature") + logger.debug("PROFILE FLAG is %s" % has_profile_flag) context = { "form_titles": self.TITLES,