From fc1cba6ae66b324abe7abc1675dbc70ad79b61fa Mon Sep 17 00:00:00 2001 From: Luis Aleixo Date: Wed, 24 Aug 2022 16:28:17 +0100 Subject: [PATCH] moved export button to the top right corner --- cara/apps/calculator/static/js/report.js | 2 +- cara/apps/templates/base/calculator.report.html.j2 | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cara/apps/calculator/static/js/report.js b/cara/apps/calculator/static/js/report.js index 0c1a3aff..91f948da 100644 --- a/cara/apps/calculator/static/js/report.js +++ b/cara/apps/calculator/static/js/report.js @@ -865,7 +865,7 @@ function copy_clipboard(shareable_link) { function display_rename_column(bool, id) { // Handle the disable property of the download button let download_button = document.getElementById('downloadCSV'); - if (document.querySelectorAll('input[type="checkbox"]:checked').length == 0) { + if (document.querySelectorAll('input[type="checkbox"]:checked').length <= 1) { download_button.disabled = true; } else { diff --git a/cara/apps/templates/base/calculator.report.html.j2 b/cara/apps/templates/base/calculator.report.html.j2 index 9bea7cbd..4dbfb942 100644 --- a/cara/apps/templates/base/calculator.report.html.j2 +++ b/cara/apps/templates/base/calculator.report.html.j2 @@ -30,7 +30,9 @@

REPORT - {{ form.simulation_name }}

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

- + + + @@ -223,8 +225,6 @@ {% endif %} {% endblock report_results %} - -