From fedfec8f972555ee788a281dc7ae1a499bd44990 Mon Sep 17 00:00:00 2001 From: Joshua Allen <130792942+BrewCityBoy@users.noreply.github.com> Date: Fri, 4 Aug 2023 21:15:48 -0400 Subject: [PATCH 1/7] financial well-being wonky no-js --- .../apps/financial-well-being/css/main.less | 2 ++ .../apps/financial-well-being/css/no-js.less | 12 ++++++++++++ .../wellbeing/jinja2/wellbeing/_templates/no_js.html | 11 +++++++++++ cfgov/wellbeing/jinja2/wellbeing/home.html | 3 +++ 4 files changed, 28 insertions(+) create mode 100644 cfgov/unprocessed/apps/financial-well-being/css/no-js.less create mode 100644 cfgov/wellbeing/jinja2/wellbeing/_templates/no_js.html diff --git a/cfgov/unprocessed/apps/financial-well-being/css/main.less b/cfgov/unprocessed/apps/financial-well-being/css/main.less index 42724b06574..ef428391983 100644 --- a/cfgov/unprocessed/apps/financial-well-being/css/main.less +++ b/cfgov/unprocessed/apps/financial-well-being/css/main.less @@ -1,3 +1,5 @@ +@import (less) './no-js.less'; + .save-links { padding-bottom: 15px; border-bottom: 1px solid #b4b5b6; diff --git a/cfgov/unprocessed/apps/financial-well-being/css/no-js.less b/cfgov/unprocessed/apps/financial-well-being/css/no-js.less new file mode 100644 index 00000000000..648f780a138 --- /dev/null +++ b/cfgov/unprocessed/apps/financial-well-being/css/no-js.less @@ -0,0 +1,12 @@ +.no-js { + /* Show the no-js notification when Javascript is disabled. */ + .m-notification__no-js { + display: block; + margin: 30px; + } + + /* Hide ROUT when JavaScript is disabled. */ + #quiz-form { + display: none; + } +} diff --git a/cfgov/wellbeing/jinja2/wellbeing/_templates/no_js.html b/cfgov/wellbeing/jinja2/wellbeing/_templates/no_js.html new file mode 100644 index 00000000000..ea8e577430f --- /dev/null +++ b/cfgov/wellbeing/jinja2/wellbeing/_templates/no_js.html @@ -0,0 +1,11 @@ +
+ {{ svg_icon('error-round') }} +
+
+ This form is not supported in your browser. + Please try a newer browser or confirm that JavaScript is enabled. +
+
+
\ No newline at end of file diff --git a/cfgov/wellbeing/jinja2/wellbeing/home.html b/cfgov/wellbeing/jinja2/wellbeing/home.html index 7bbf7b101b9..4cd40f041ea 100644 --- a/cfgov/wellbeing/jinja2/wellbeing/home.html +++ b/cfgov/wellbeing/jinja2/wellbeing/home.html @@ -20,6 +20,8 @@ {% block css -%} {{ super() }} +