Domain requests
-
- {% comment %}
- IMPORTANT:
- If this button is added on any other page, make sure to update the
- relevant view to reset request.session["new_request"] = True
- {% endcomment %}
-
-
- Start a new domain request
-
-
+
+
+
Domain requests can only be modified by the person who created the request.
+
+ {% if has_edit_request_portfolio_permission %}
+
+ {% comment %}
+ IMPORTANT:
+ If this button is added on any other page, make sure to update the
+ relevant view to reset request.session["new_request"] = True
+ {% endcomment %}
+
+
+ Start a new domain request
+
+
+
+ {% endif %}
+
+
{% include "includes/domain_requests_table.html" with portfolio=portfolio %}
diff --git a/src/registrar/views/portfolios.py b/src/registrar/views/portfolios.py
index e4b91d4bf..885dca636 100644
--- a/src/registrar/views/portfolios.py
+++ b/src/registrar/views/portfolios.py
@@ -76,7 +76,7 @@ class PortfolioNoDomainRequestsView(NoPortfolioDomainsPermissionView, View):
"""
model = Portfolio
- template_name = "portfolio_no_domain_requests.html"
+ template_name = "portfolio_no_requests.html"
def get(self, request):
return render(request, self.template_name, context=self.get_context_data())