From 655f84d88700f9044013b212b827a01ca27e21bf Mon Sep 17 00:00:00 2001 From: Hamza Khalid Date: Mon, 24 Jun 2024 00:23:48 +0100 Subject: [PATCH 1/4] FS-3873: - Cookie Policy page added - Route to cookie policy page added - Cookie banner added with accept and decline options - Unused JS functions removed - Show all sections and show are being rendred by the govuk frontend in the version being used --- .../templates/assessor_tool_dashboard.html | 18 +- app/blueprints/shared/routes.py | 10 ++ app/static/src/js/fsd_cookies.js | 54 ++++++ app/static/src/js/helpers.js | 58 ------ app/static/src/styles/govuk-overrides.css | 15 ++ app/templates/cookie_policy.html | 167 ++++++++++++++++++ app/templates/head.html | 89 ++++++++-- build.py | 6 + config/envs/default.py | 72 +++++++- create_app.py | 2 +- requirements-dev.txt | 2 +- requirements.in | 2 +- requirements.txt | 2 +- static_assets.py | 1 + 14 files changed, 408 insertions(+), 90 deletions(-) create mode 100644 app/static/src/js/fsd_cookies.js create mode 100644 app/templates/cookie_policy.html diff --git a/app/blueprints/assessments/templates/assessor_tool_dashboard.html b/app/blueprints/assessments/templates/assessor_tool_dashboard.html index 23512eb3..92309f2d 100644 --- a/app/blueprints/assessments/templates/assessor_tool_dashboard.html +++ b/app/blueprints/assessments/templates/assessor_tool_dashboard.html @@ -30,14 +30,9 @@

- {% if funds %} -
- -
- {% endif %} + + + {% for fund_id in funds %}
@@ -50,13 +45,6 @@

{{ funds[fund_id].name }} ({{ fund_summaries[fund_id] | length }}) - , - - - - Show - -