Fixed context

This commit is contained in:
CocoByte 2024-05-22 15:26:10 -06:00
parent 6352c96a6c
commit 78ba5c78d7
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F
2 changed files with 4 additions and 3 deletions

View file

@ -14,8 +14,7 @@
<h2>Time to complete the form</h2>
<p>If you have <a href="{% public_site_url 'domains/before/#information-you%E2%80%99ll-need-to-complete-the-domain-request-form' %}" target="_blank" class="usa-link">all the information you need</a>,
completing your domain request might take around 15 minutes.</p>
{% if has_profile_feature_flag == true %}
{% if has_profile_feature_flag %}
<h2>How we'll reach you</h2>
<p>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 <a href="" target="_blank" class="usa-link">your profile</a> to make updates.</p>
{% include "includes/profile_information.html" with user=user%}

View file

@ -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,