From 700c76807bae27090ee65901c8ff3589744f0c71 Mon Sep 17 00:00:00 2001 From: Jonathan Bobel Date: Wed, 26 Mar 2025 16:01:56 -0400 Subject: [PATCH 01/10] Update send.html --- app/templates/views/send.html | 87 +++++++++++++++++++++++++++++++++-- 1 file changed, 82 insertions(+), 5 deletions(-) diff --git a/app/templates/views/send.html b/app/templates/views/send.html index eec54ed72..a525a8625 100644 --- a/app/templates/views/send.html +++ b/app/templates/views/send.html @@ -15,11 +15,51 @@ {{ usaBackLink(params) }} {% endblock %} +{% set phone_numbers = [ + { + "svg_src": "#check_circle", + "card_heading": "Label column A (the first column) as Phone number", + }, + { + "svg_src": "#check_circle", + "card_heading": "Double check it’s the only column with Phone number as its label", + }, + { + "svg_src": "#check_circle", + "card_heading": "Make sure no duplicate phone numbers are listed in Column A", + } + ] +%} + +{% set additional_data = [ + { + "svg_src": "#check_circle", + "card_heading": "Match column labels one-to-one to the message template placeholders", + }, + { + "svg_src": "#check_circle", + "card_heading": "Label each additional personalized placeholder separately", + }, + { + "svg_src": "#check_circle", + "card_heading": "Separate each word in a column label with a space or dash, but no commas", + }, + { + "svg_src": "#check_circle", + "card_heading": "Fill in each conditional placeholder column with a Yes (Y) or No (N) to “answer” whether the recipient meets its criteria", + } + ] +%} + {% block maincolumn_content %} {{ page_header('Upload a list of {}'.format(999|recipient_count_label(template.template_type))) }} -
- If you're receiving any errors, double check your file format and make sure your data is pasted in with values only. + If you're receiving any errors, double check your file format and make sure your data is pasted in with values only
From e59ddfcae5781cf2b783e1133f97a7efb0f5b1f2 Mon Sep 17 00:00:00 2001 From: alexjanousekGSA Date: Thu, 10 Apr 2025 15:58:26 -0400 Subject: [PATCH 10/10] Update unit test --- tests/app/main/views/test_headers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/app/main/views/test_headers.py b/tests/app/main/views/test_headers.py index ec7d3d6a7..efa2d1c4e 100644 --- a/tests/app/main/views/test_headers.py +++ b/tests/app/main/views/test_headers.py @@ -14,7 +14,7 @@ def test_owasp_useful_headers_set( assert response.headers["X-Frame-Options"] == "deny" assert response.headers["X-Content-Type-Options"] == "nosniff" csp = response.headers["Content-Security-Policy"] - assert search(r"frame-src https://www.googletagmanager.com", csp) + assert search(r"frame-src.*https://www\.googletagmanager\.com", csp) assert search(r"frame-ancestors 'none';", csp) assert search(r"form-action 'self';", csp) assert search(