mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-04 08:52:16 +02:00
Merge branch 'za/3307-duplicate-key-bug' into za/3280-design-review
This commit is contained in:
commit
9d07d4f76c
6 changed files with 13 additions and 13 deletions
|
@ -1,7 +1,7 @@
|
|||
{% if messages %}
|
||||
{% for message in messages %}
|
||||
<div class="usa-alert usa-alert--{{ message.tags }} usa-alert--slim margin-bottom-2">
|
||||
<div class="usa-alert__body">
|
||||
<div class="usa-alert__body {% if no_max_width %} maxw-none {% endif %}">
|
||||
{{ message }}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
|
||||
<div class="grid-row grid-gap">
|
||||
<div class="mobile:grid-col-12 tablet:grid-col-7">
|
||||
<h1 class="margin-bottom-3">Domain assignments</h1>
|
||||
<h1>Domain assignments</h1>
|
||||
</div>
|
||||
{% if has_edit_members_portfolio_permission %}
|
||||
<div class="mobile:grid-col-12 tablet:grid-col-5">
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
</nav>
|
||||
|
||||
<section id="domain-assignments-edit-view">
|
||||
<h1 class="margin-bottom-3">Edit domain assignments</h1>
|
||||
<h1>Edit domain assignments</h1>
|
||||
|
||||
<p class="margin-bottom-0">
|
||||
A domain manager can be assigned to any domain across the organization. Domain managers can change domain information, adjust DNS settings, and invite or assign other domain managers to their assigned domains.
|
||||
|
@ -74,7 +74,7 @@
|
|||
</section>
|
||||
|
||||
<section id="domain-assignments-readonly-view" class="display-none">
|
||||
<h1 class="margin-bottom-3">Review domain assignments</h1>
|
||||
<h1>Review domain assignments</h1>
|
||||
|
||||
<h2 class="text-primary-dark">Would you like to continue with the following domain assignment changes for
|
||||
{% if member %}
|
||||
|
|
|
@ -12,13 +12,13 @@
|
|||
|
||||
<!-- Form messages -->
|
||||
{% block messages %}
|
||||
{% include "includes/form_messages.html" %}
|
||||
{% include "includes/form_messages.html" with no_max_width=True %}
|
||||
{% endblock messages%}
|
||||
|
||||
<div id="main-content">
|
||||
<div id="toggleable-alert" class="usa-alert usa-alert--slim margin-bottom-2 display-none">
|
||||
<div class="usa-alert__body usa-alert__body--widescreen">
|
||||
<p class="usa-alert__text ">
|
||||
<p class="usa-alert__text">
|
||||
<!-- alert message will be conditionally populated by javascript -->
|
||||
</p>
|
||||
</div>
|
||||
|
|
|
@ -1676,8 +1676,8 @@ class TestPortfolio(WebTest):
|
|||
self.assertEqual(response.status_code, 400) # Bad request due to active requests
|
||||
support_url = "https://get.gov/contact/"
|
||||
expected_error_message = (
|
||||
f"This member has an active domain request and can't be removed from the organization. "
|
||||
f"<a href='{support_url}' target='_blank'>Contact the .gov team</a> to remove them."
|
||||
"Please <contact us> to remove this member."
|
||||
f"Please <a href='{support_url}' target='_blank'>contact us</a> to remove this member."
|
||||
)
|
||||
|
||||
self.assertContains(response, expected_error_message, status_code=400)
|
||||
|
@ -1799,8 +1799,8 @@ class TestPortfolio(WebTest):
|
|||
|
||||
support_url = "https://get.gov/contact/"
|
||||
expected_error_message = (
|
||||
f"This member has an active domain request and can't be removed from the organization. "
|
||||
f"<a href='{support_url}' target='_blank'>Contact the .gov team</a> to remove them."
|
||||
"Please <contact us> to remove this member."
|
||||
f"Please <a href='{support_url}' target='_blank'>contact us</a> to remove this member."
|
||||
)
|
||||
|
||||
args, kwargs = mock_error.call_args
|
||||
|
|
|
@ -117,9 +117,9 @@ class PortfolioMemberDeleteView(PortfolioMemberPermission, View):
|
|||
|
||||
if active_requests_count > 0:
|
||||
# If they have any in progress requests
|
||||
error_message = mark_safe( # nosec
|
||||
f"This member has an active domain request and can't be removed from the organization. "
|
||||
f"<a href='{support_url}' target='_blank'>Contact the .gov team</a> to remove them."
|
||||
error_message = mark_safe(
|
||||
"Please <contact us> to remove this member."
|
||||
f"Please <a href='{support_url}' target='_blank'>contact us</a> to remove this member."
|
||||
)
|
||||
elif member.is_only_admin_of_portfolio(portfolio_member_permission.portfolio):
|
||||
# If they are the last manager of a domain
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue