From 3996e210d8f953b62f982b829734a76a8a4c2f64 Mon Sep 17 00:00:00 2001 From: Luis Aleixo Date: Thu, 11 Nov 2021 16:08:45 +0100 Subject: [PATCH] Warning messages centered --- .../templates/base/calculator.report.html.j2 | 13 +++++++------ .../cern/templates/calculator.report.html.j2 | 16 ++++++++-------- cara/apps/static/css/style.css | 3 +++ 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/cara/apps/calculator/templates/base/calculator.report.html.j2 b/cara/apps/calculator/templates/base/calculator.report.html.j2 index f63b0884..78b24592 100644 --- a/cara/apps/calculator/templates/base/calculator.report.html.j2 +++ b/cara/apps/calculator/templates/base/calculator.report.html.j2 @@ -65,25 +65,26 @@
Probability of infection (%)
{% block warning_animation %} -
+
{{prob_inf | non_zero_percentage}} - - - + + +
{% endblock warning_animation %}
-
+
{% block report_summary %} -
+
{% block report_summary_footnote %} {% endblock report_summary_footnote %} diff --git a/cara/apps/calculator/themes/cern/templates/calculator.report.html.j2 b/cara/apps/calculator/themes/cern/templates/calculator.report.html.j2 index 2e95eca5..78e73b8f 100644 --- a/cara/apps/calculator/themes/cern/templates/calculator.report.html.j2 +++ b/cara/apps/calculator/themes/cern/templates/calculator.report.html.j2 @@ -24,44 +24,44 @@ {% block report_summary %}
{% if ((prob_inf > 15) or (expected_new_cases >= 1)) %} -