From 745352d191b6f17fda88e6940e56061510da7b8d Mon Sep 17 00:00:00 2001 From: Bryan Lancien Date: Mon, 29 Apr 2024 19:25:40 +0100 Subject: [PATCH 01/14] add basic calculation alert box to the top sidebar --- digiplan/static/scss/app.scss | 1 + .../static/scss/components/_progress.scss | 8 ++++++++ digiplan/static/scss/layouts/_panel.scss | 19 +++++++++++++++++++ .../templates/components/panel_5_results.html | 13 ++++++++++++- 4 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 digiplan/static/scss/components/_progress.scss diff --git a/digiplan/static/scss/app.scss b/digiplan/static/scss/app.scss index e747419f..7b931e1a 100644 --- a/digiplan/static/scss/app.scss +++ b/digiplan/static/scss/app.scss @@ -19,6 +19,7 @@ @import 'components/modals'; @import 'components/offcanvas'; @import 'components/popup'; +@import 'components/progress'; @import 'components/scenarios'; @import 'components/tabs'; @import 'components/top-nav'; diff --git a/digiplan/static/scss/components/_progress.scss b/digiplan/static/scss/components/_progress.scss new file mode 100644 index 00000000..3377c306 --- /dev/null +++ b/digiplan/static/scss/components/_progress.scss @@ -0,0 +1,8 @@ +.progress { + .progress-bar { + @extend .progress-bar-striped; + @extend .progress-bar-animated; + @extend .bg-success; + background-color: rgba(74, 194, 157, var(--bs-bg-opacity)) !important; + } +} \ No newline at end of file diff --git a/digiplan/static/scss/layouts/_panel.scss b/digiplan/static/scss/layouts/_panel.scss index 3770c9c2..55b3da2d 100644 --- a/digiplan/static/scss/layouts/_panel.scss +++ b/digiplan/static/scss/layouts/_panel.scss @@ -124,6 +124,24 @@ @extend .px-0; } + &__calc-alert { + @extend .p-2; + @extend .p-2; + @extend .border; + + &-message { + @extend .fs-7; + padding-bottom: 0.75rem; + } + + &-explanation { + @extend .fs-7; + @extend .fw-semibold; + @extend .text-info; + padding-bottom: 0.75rem; + } + } + &__tabs { .nav-tabs { @extend .pt-2; @@ -215,6 +233,7 @@ @extend .d-flex; @extend .flex-row; @extend .align-items-center; + @extend .pt-2; select, img { diff --git a/digiplan/templates/components/panel_5_results.html b/digiplan/templates/components/panel_5_results.html index 0105c23a..09829acd 100644 --- a/digiplan/templates/components/panel_5_results.html +++ b/digiplan/templates/components/panel_5_results.html @@ -2,6 +2,17 @@
+
+
{% translate "Detailergebnisse werden berechnet" %}
+
+ +
+
+
+
+