From 9a5a960e57201d52b8f27798180c7f2656408d10 Mon Sep 17 00:00:00 2001 From: Beverly Nguyen Date: Mon, 18 Nov 2024 14:00:52 -0800 Subject: [PATCH 1/5] contact content --- app/main/views/index.py | 8 +++++ app/main/views/sub_navigation_dictionaries.py | 4 +++ app/templates/views/about/contact.html | 35 +++++++++++++++++++ tests/app/test_navigation.py | 1 + 4 files changed, 48 insertions(+) create mode 100644 app/templates/views/about/contact.html diff --git a/app/main/views/index.py b/app/main/views/index.py index 974e29211..5e7bff008 100644 --- a/app/main/views/index.py +++ b/app/main/views/index.py @@ -295,6 +295,14 @@ def about_notify(): ) +@main.route("/about/contact") +def contact(): + return render_template( + "views/about/contact.html", + navigation_links=about_notify_nav(), + ) + + @main.route("/using-notify/guidance/create-and-send-messages") @user_is_logged_in def create_and_send_messages(): diff --git a/app/main/views/sub_navigation_dictionaries.py b/app/main/views/sub_navigation_dictionaries.py index b9fb7f8ae..56505ca6e 100644 --- a/app/main/views/sub_navigation_dictionaries.py +++ b/app/main/views/sub_navigation_dictionaries.py @@ -113,4 +113,8 @@ def about_notify_nav(): "name": "About notify", "link": "main.about_notify", }, + { + "name": "Contact", + "link": "main.contact", + }, ] diff --git a/app/templates/views/about/contact.html b/app/templates/views/about/contact.html new file mode 100644 index 000000000..8b4a00250 --- /dev/null +++ b/app/templates/views/about/contact.html @@ -0,0 +1,35 @@ +{% extends "base.html" %} + +{% set page_title = "Contact" %} + +{% block per_page_title %} +{{page_title}} +{% endblock %} + +{% block content_column_content %} + +
+

{{page_title}}

+

Notify is designed to be easy to use.

+ +

If you have technical issues or questions, we are available at notify-support@gsa.gov.

+

You can expect a response within one business day.

+
+
+
+

For partnership inquiries see, Join Notify or contact us at
tts-notify@gsa.gov.

+
+
+
+
+{% endblock %} diff --git a/tests/app/test_navigation.py b/tests/app/test_navigation.py index 15be17081..8185afe82 100644 --- a/tests/app/test_navigation.py +++ b/tests/app/test_navigation.py @@ -61,6 +61,7 @@ EXCLUDED_ENDPOINTS = tuple( "conversation_reply", "conversation_reply_with_template", "conversation_updates", + "contact", "copy_template", "count_content_length", "create_and_send_messages", From 3a6295b7a2765d29b54f85b7a03178bd2570f8cf Mon Sep 17 00:00:00 2001 From: Beverly Nguyen Date: Tue, 19 Nov 2024 18:06:23 -0800 Subject: [PATCH 2/5] update contact --- app/templates/views/about/contact.html | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/app/templates/views/about/contact.html b/app/templates/views/about/contact.html index 8b4a00250..046732576 100644 --- a/app/templates/views/about/contact.html +++ b/app/templates/views/about/contact.html @@ -11,23 +11,16 @@

{{page_title}}

Notify is designed to be easy to use.

-
    -
  • For information on personalization and data preparation, see Using Notify. -
  • -
  • For help interpreting delivery reports, see Delivery Status.
  • -
  • For details on pricing and what counts as a message part, see Tracking - Messages. -
  • -

If you have technical issues or questions, we are available at notify-support@gsa.gov.

You can expect a response within one business day.

+ aria-label="For partnership inquiries">
-

For partnership inquiries see, Join Notify or contact us at
tts-notify@gsa.gov.

+

For partnership inquiries see, Join Notify or contact us at
tts-notify@gsa.gov.

From 9483c099db28a81a5dbd5ac26132ad3669541b72 Mon Sep 17 00:00:00 2001 From: Beverly Nguyen Date: Wed, 20 Nov 2024 11:11:12 -0800 Subject: [PATCH 3/5] update content --- app/templates/views/about/contact.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/templates/views/about/contact.html b/app/templates/views/about/contact.html index 046732576..96c3a0895 100644 --- a/app/templates/views/about/contact.html +++ b/app/templates/views/about/contact.html @@ -10,17 +10,17 @@

{{page_title}}

-

Notify is designed to be easy to use.

-

If you have technical issues or questions, we are available at notify-support@gsa.gov.

+

Is your organization interested in using Notify.gov? Find more information at Join + Notify or contact us at tts-notify@gsa.gov.

You can expect a response within one business day.

-

For partnership inquiries see, Join Notify or contact us at
tts-notify@gsa.gov.

+

If you are a current Notify.gov partner and have technical issues or questions, we are available at notify-support@gsa.gov

From b49f579ece152a8dc0b648841b177928512a6b91 Mon Sep 17 00:00:00 2001 From: Beverly Nguyen Date: Wed, 4 Dec 2024 14:29:49 -0800 Subject: [PATCH 4/5] updated contact route --- app/main/views/index.py | 2 +- app/templates/views/{about => }/contact.html | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) rename app/templates/views/{about => }/contact.html (85%) diff --git a/app/main/views/index.py b/app/main/views/index.py index 06f07d38c..8abb616db 100644 --- a/app/main/views/index.py +++ b/app/main/views/index.py @@ -281,7 +281,7 @@ def guidance_index(): @main.route("/contact") def contact(): return render_template( - "views/about/contact.html", + "views/contact.html", ) diff --git a/app/templates/views/about/contact.html b/app/templates/views/contact.html similarity index 85% rename from app/templates/views/about/contact.html rename to app/templates/views/contact.html index 96c3a0895..a2cd4f9c7 100644 --- a/app/templates/views/about/contact.html +++ b/app/templates/views/contact.html @@ -2,12 +2,9 @@ {% set page_title = "Contact" %} -{% block per_page_title %} -{{page_title}} -{% endblock %} +{% block per_page_title %}{{page_title}}{% endblock %} {% block content_column_content %} -

{{page_title}}

Is your organization interested in using Notify.gov? Find more information at Join From 0f7d09ac74a714fc0616987298722a383190e64a Mon Sep 17 00:00:00 2001 From: Beverly Nguyen Date: Wed, 4 Dec 2024 14:32:17 -0800 Subject: [PATCH 5/5] fixed flake8 --- app/main/views/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main/views/index.py b/app/main/views/index.py index 8abb616db..4478f225c 100644 --- a/app/main/views/index.py +++ b/app/main/views/index.py @@ -282,7 +282,7 @@ def guidance_index(): def contact(): return render_template( "views/contact.html", -) + ) @main.route("/about")