From bf253e1cd2709f726b2507023c3ee1d3b393721b Mon Sep 17 00:00:00 2001 From: CocoByte Date: Thu, 2 Jan 2025 21:39:26 -0700 Subject: [PATCH] Fix alignment of alerts --- src/registrar/assets/src/sass/_theme/_alerts.scss | 2 +- src/registrar/templates/includes/senior_official.html | 4 ++++ src/registrar/templates/portfolio_base.html | 3 --- src/registrar/templates/portfolio_domains.html | 4 +++- src/registrar/templates/portfolio_member.html | 7 ++++++- src/registrar/templates/portfolio_member_domains.html | 5 +++++ .../templates/portfolio_member_domains_edit.html | 5 +++++ .../templates/portfolio_member_permissions.html | 6 ++++++ src/registrar/templates/portfolio_members.html | 5 +++++ src/registrar/templates/portfolio_members_add_new.html | 2 +- src/registrar/templates/portfolio_no_domains.html | 7 ++++++- src/registrar/templates/portfolio_no_requests.html | 7 +++++++ src/registrar/templates/portfolio_organization.html | 9 ++++----- src/registrar/templates/portfolio_requests.html | 4 +++- src/registrar/templates/portfolio_senior_official.html | 3 --- 15 files changed, 56 insertions(+), 17 deletions(-) diff --git a/src/registrar/assets/src/sass/_theme/_alerts.scss b/src/registrar/assets/src/sass/_theme/_alerts.scss index fda58f56d..3164358b7 100644 --- a/src/registrar/assets/src/sass/_theme/_alerts.scss +++ b/src/registrar/assets/src/sass/_theme/_alerts.scss @@ -10,7 +10,7 @@ // Fixes that issue @include at-media(desktop) { // NOTE: !important is used because _font.scss overrides this - .usa-alert__body--widescreen { + .usa-alert__body { max-width: $widescreen-max-width !important; } .usa-alert--warning{ diff --git a/src/registrar/templates/includes/senior_official.html b/src/registrar/templates/includes/senior_official.html index 19b443fcd..52b4ab6eb 100644 --- a/src/registrar/templates/includes/senior_official.html +++ b/src/registrar/templates/includes/senior_official.html @@ -1,5 +1,9 @@ {% load static field_helpers url_helpers %} + +{% block messages %} +{% include "includes/form_messages.html" %} +{% endblock messages%} {% if can_edit %} {% include "includes/form_errors.html" with form=form %} {% endif %} diff --git a/src/registrar/templates/portfolio_base.html b/src/registrar/templates/portfolio_base.html index 4cafd3f84..9f43c7251 100644 --- a/src/registrar/templates/portfolio_base.html +++ b/src/registrar/templates/portfolio_base.html @@ -10,9 +10,6 @@
- {% block messages %} - {% include "includes/form_messages.html" %} - {% endblock %} {% block portfolio_content %}{% endblock %} diff --git a/src/registrar/templates/portfolio_domains.html b/src/registrar/templates/portfolio_domains.html index 4fd99ce8e..55d807e78 100644 --- a/src/registrar/templates/portfolio_domains.html +++ b/src/registrar/templates/portfolio_domains.html @@ -9,9 +9,11 @@ {% endblock %} {% block portfolio_content %} + + {% block messages %} {% include "includes/form_messages.html" %} -{% endblock %} +{% endblock messages%}

Domains

diff --git a/src/registrar/templates/portfolio_member.html b/src/registrar/templates/portfolio_member.html index 071dba843..3fa4fed14 100644 --- a/src/registrar/templates/portfolio_member.html +++ b/src/registrar/templates/portfolio_member.html @@ -8,7 +8,12 @@ Organization member {% load static %} {% block portfolio_content %} -
+
+ + {% include "includes/form_errors.html" with form=form %} + {% block messages %} + {% include "includes/form_messages.html" %} + {% endblock messages%} {% url 'members' as url %}