From a1000eb3ec09c1725af2eb66435d87ae1260098c Mon Sep 17 00:00:00 2001 From: Phil Elson Date: Sat, 17 Apr 2021 22:10:19 +0200 Subject: [PATCH 1/3] First steps towards making the form reponsive to screensize. --- .../templates/calculator.form.html.j2 | 91 ++++++++++++++----- 1 file changed, 67 insertions(+), 24 deletions(-) diff --git a/cara/apps/calculator/templates/calculator.form.html.j2 b/cara/apps/calculator/templates/calculator.form.html.j2 index 063a1c46..14df152e 100644 --- a/cara/apps/calculator/templates/calculator.form.html.j2 +++ b/cara/apps/calculator/templates/calculator.form.html.j2 @@ -26,7 +26,7 @@ v{{ calculator_version }} Please sen {% if DEBUG %} -
+ {% else %} {% endif %} @@ -34,37 +34,67 @@ v{{ calculator_version }} Please sen -
+
+
+
- Simulation name:
- Room number:
-
+
+ + +
+ +
+ + +
+ +
Virus data: +
?

- Variant: -
+ +
+ + +
+
Room data:
?

- -    -
- -    -
-          -
+
+ +
+ + +
+ +
+ +
+
+ +    +
+ +
+
+
+          +
+ +
+
@@ -134,15 +164,24 @@ v{{ calculator_version }} Please sen
-
+
Event data:
?

- Total number of occupants:
- Number of infected people:
+ +
+ + +
+ +
+ +
+
+
@@ -265,9 +304,11 @@ v{{ calculator_version }} Please sen
Coffee breaks are spread evenly throughout the day.

+ +
-
+
Quick Guide:
This tool simulates the long range airborne spread SARS-CoV-2 virus in a finite volume and estimates the risk of COVID-19 infection. It is based on current scientific data and can be used to compare the effectiveness of different mitigation measures.
@@ -315,7 +356,9 @@ v{{ calculator_version }} Please sen for more detailed explanations on how to use this tool.
-



+
+
+



From 9d89ba725e8411e2d8e7c4587a57188ccb917503 Mon Sep 17 00:00:00 2001 From: Phil Elson Date: Mon, 10 May 2021 07:21:42 +0200 Subject: [PATCH 2/3] Spacing between the generate button and the userguide. --- cara/apps/calculator/templates/calculator.form.html.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/cara/apps/calculator/templates/calculator.form.html.j2 b/cara/apps/calculator/templates/calculator.form.html.j2 index 14df152e..b4b4c62e 100644 --- a/cara/apps/calculator/templates/calculator.form.html.j2 +++ b/cara/apps/calculator/templates/calculator.form.html.j2 @@ -306,6 +306,7 @@ v{{ calculator_version }} Please sen
+

From d082156d46b62134b1d9c371c0fcf4e63c7aa269 Mon Sep 17 00:00:00 2001 From: Phil Elson Date: Wed, 12 May 2021 20:08:38 +0200 Subject: [PATCH 3/3] Follow-up from Andre's review. --- .../apps/calculator/templates/calculator.form.html.j2 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cara/apps/calculator/templates/calculator.form.html.j2 b/cara/apps/calculator/templates/calculator.form.html.j2 index b4b4c62e..254ea53c 100644 --- a/cara/apps/calculator/templates/calculator.form.html.j2 +++ b/cara/apps/calculator/templates/calculator.form.html.j2 @@ -174,12 +174,12 @@ v{{ calculator_version }} Please sen
- +
-
+
@@ -304,8 +304,11 @@ v{{ calculator_version }} Please sen
Coffee breaks are spread evenly throughout the day.

- - +
+
+ +
+