We’ll email you if we have questions. We’ll also email you as soon as we complete our review. You can check the status - of your request at any time on the registrar homepage.
+We’ll email you if we have questions. We’ll also email you as soon as we complete our review. You can check the status + of your request at any time on the registrar.
Contact us if you need help during this process.
From 9b43b8df012c2b604dd88aecaed6493f6eac8303 Mon Sep 17 00:00:00 2001 From: asaki222Provide details below. *
+This question is optional.
{% with attr_maxlength=2000 add_label_class="usa-sr-only" %} {% input_with_errors forms.0.anything_else %} {% endwith %} diff --git a/src/registrar/templates/portfolio_requests.html b/src/registrar/templates/portfolio_requests.html index d21bbcc4e..f762a42c8 100644 --- a/src/registrar/templates/portfolio_requests.html +++ b/src/registrar/templates/portfolio_requests.html @@ -14,12 +14,12 @@ {% endblock %}Domain requests
+Domain requests
Domain requests can only be modified by the person who created the request.
+Domain requests can only be modified by the person who created the request.
Current domain requests
+Domain requests
You don’t have access to domain requests.
{% if portfolio_administrators %} -If you believe you should have access to a request, reach out to your organization’s administrators.
-Your organizations administrators:
+If you believe you should have access to requests, reach out to your organization’s administrators.
+Your organization's administrators:
-
{% for administrator in portfolio_administrators %}
{% if administrator.email %}
From d52ed725c1213807313670492ead7811d2d55f8b Mon Sep 17 00:00:00 2001
From: asaki222
This question is optional.
+Provide details below. *
{% with attr_maxlength=2000 add_label_class="usa-sr-only" %} {% input_with_errors forms.0.anything_else %} {% endwith %} From 3311a8c9e23ca137e8cbdb73ff885bc2c01b2fe9 Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Fri, 8 Nov 2024 10:24:29 -0700 Subject: [PATCH 006/148] remove hide request and domains from context --- src/registrar/views/domain_request.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/registrar/views/domain_request.py b/src/registrar/views/domain_request.py index 2aed789e8..b04b6e696 100644 --- a/src/registrar/views/domain_request.py +++ b/src/registrar/views/domain_request.py @@ -489,11 +489,6 @@ class DomainRequestWizard(DomainRequestWizardPermissionView, TemplateView): "user": self.request.user, "requested_domain__name": requested_domain_name, } - - # Hides the requests and domains buttons in the navbar - context_stuff["hide_requests"] = self.is_portfolio - context_stuff["hide_domains"] = self.is_portfolio - return context_stuff def get_step_list(self) -> list: From 6ead9a21d1d04231632e9abb078c62a87c7f05a5 Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Fri, 8 Nov 2024 10:57:02 -0700 Subject: [PATCH 007/148] Add padding for withdraw view --- .../templates/domain_request_withdraw_confirmation.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/registrar/templates/domain_request_withdraw_confirmation.html b/src/registrar/templates/domain_request_withdraw_confirmation.html index edcdcadd3..03cb06b51 100644 --- a/src/registrar/templates/domain_request_withdraw_confirmation.html +++ b/src/registrar/templates/domain_request_withdraw_confirmation.html @@ -3,6 +3,10 @@ {% block title %}Withdraw request for {{ DomainRequest.requested_domain.name }} | {% endblock %} {% load static url_helpers %} +{% block wrapperdiv %} +To help with our review, we need to understand whether the domain you're requesting will be used by the Department of Energy or by one of its suborganizations.
+To help with our review, we need to understand whether the domain you're requesting will be used by {{ portfolio }} or by one of its suborganizations.
We define a suborganization as any entity (agency, bureau, office) that falls under the overarching organization.
{% endblock %} From 425e7e995b9198beddc6e58009019ea34bccfee3 Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Tue, 12 Nov 2024 15:20:55 -0700 Subject: [PATCH 017/148] fix test --- src/registrar/context_processors.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/registrar/context_processors.py b/src/registrar/context_processors.py index 32022aa34..10a4fcb89 100644 --- a/src/registrar/context_processors.py +++ b/src/registrar/context_processors.py @@ -109,6 +109,7 @@ def is_widescreen_mode(request): ] is_widescreen = any(path in request.path for path in widescreen_paths) or request.path == "/" is_portfolio_widescreen = bool( + hasattr(request.user, "is_org_user") and request.user.is_org_user(request) and any(path in request.path for path in portfolio_widescreen_paths) ) From 23702ab0bb0aef9ad9d1ec61366a616772c28f2f Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Tue, 12 Nov 2024 15:29:42 -0700 Subject: [PATCH 018/148] fix test and lint --- src/registrar/context_processors.py | 7 +++---- src/registrar/tests/test_views_portfolio.py | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/registrar/context_processors.py b/src/registrar/context_processors.py index 10a4fcb89..ae35a8865 100644 --- a/src/registrar/context_processors.py +++ b/src/registrar/context_processors.py @@ -96,7 +96,6 @@ def portfolio_permissions(request): return portfolio_context - def is_widescreen_mode(request): widescreen_paths = [] portfolio_widescreen_paths = [ @@ -109,8 +108,8 @@ def is_widescreen_mode(request): ] is_widescreen = any(path in request.path for path in widescreen_paths) or request.path == "/" is_portfolio_widescreen = bool( - hasattr(request.user, "is_org_user") and - request.user.is_org_user(request) and - any(path in request.path for path in portfolio_widescreen_paths) + hasattr(request.user, "is_org_user") + and request.user.is_org_user(request) + and any(path in request.path for path in portfolio_widescreen_paths) ) return {"is_widescreen_mode": is_widescreen or is_portfolio_widescreen} diff --git a/src/registrar/tests/test_views_portfolio.py b/src/registrar/tests/test_views_portfolio.py index 402d23b70..775cb04e6 100644 --- a/src/registrar/tests/test_views_portfolio.py +++ b/src/registrar/tests/test_views_portfolio.py @@ -1658,7 +1658,7 @@ class TestRequestingEntity(WebTest): self.assertContains(response, "Add suborganization information") # We expect to see the portfolio name in two places: # the header, and as one of the radio button options. - self.assertContains(response, self.portfolio.organization_name, count=2) + self.assertContains(response, self.portfolio.organization_name, count=3) # We expect the dropdown list to contain the suborganizations that currently exist on this portfolio self.assertContains(response, self.suborganization.name, count=1) From 13faf5bba558e4491faea95e6c5365f8da6ccafe Mon Sep 17 00:00:00 2001 From: asaki222