From 3dba74c23f9f3ed82ee2f7f2d4a529af9a646ee2 Mon Sep 17 00:00:00 2001 From: Luis Aleixo Date: Thu, 2 Jun 2022 15:59:22 +0200 Subject: [PATCH] Handled images on printable report and added link from title --- cara/apps/calculator/static/css/report.css | 6 ++++++ cara/apps/templates/base/calculator.report.html.j2 | 12 ++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/cara/apps/calculator/static/css/report.css b/cara/apps/calculator/static/css/report.css index 3a5a5487..dfd11ff6 100644 --- a/cara/apps/calculator/static/css/report.css +++ b/cara/apps/calculator/static/css/report.css @@ -136,6 +136,12 @@ p.notes { .card { page-break-inside: avoid; } + .pi-image { + max-height: 9em; + } + .pi-box { + max-width: 260px!important; + } #link-results { display: none; } diff --git a/cara/apps/templates/base/calculator.report.html.j2 b/cara/apps/templates/base/calculator.report.html.j2 index 38413851..bfe9632f 100644 --- a/cara/apps/templates/base/calculator.report.html.j2 +++ b/cara/apps/templates/base/calculator.report.html.j2 @@ -19,9 +19,9 @@ {% block report_header %}
- +
-

REPORT

+

REPORT - {{ form.simulation_name }}

Created {{ creation_date }} using CARA calculator version v{{ form.calculator_version }}

@@ -67,7 +67,7 @@

-
+
Probability of infection (%)
{% if form.short_range_option == "short_range_yes" %} @@ -75,7 +75,7 @@ {% endif %}

- +
{% block long_range_warning_animation %}
@@ -90,13 +90,13 @@

{% if form.short_range_option == "short_range_yes" %} -
+
Probability of infection (%)
With short-range interactions

- +
{% block warning_animation %}