From 4c364826767c6ac0b80de9e6c6978fed5c1621e7 Mon Sep 17 00:00:00 2001 From: mayabrandi Date: Wed, 11 Nov 2020 15:55:39 +0100 Subject: [PATCH 1/3] building report view --- .../{fetal_fraction.html => plots/FF.html} | 23 --- .../FF_XY.html} | 25 +--- .../templates/batch/{ => plots}/NCV.html | 19 +-- .../templates/batch/{ => plots}/coverage.html | 16 --- NIPTool/server/templates/batch/report.html | 85 ++++++++++- NIPTool/server/templates/batch/tabs/FF.html | 25 ++++ .../server/templates/batch/tabs/FF_XY.html | 22 +++ NIPTool/server/templates/batch/tabs/NCV.html | 17 +++ .../server/templates/batch/tabs/coverage.html | 18 +++ .../batch/{batch.html => tabs/table.html} | 3 +- NIPTool/server/templates/batches.html | 1 - NIPTool/server/templates/layout/layout.html | 4 +- NIPTool/server/templates/sample/sample.html | 1 - .../server/templates/sample/sample_tris.html | 1 - NIPTool/server/templates/statistics.html | 1 - NIPTool/server/utils.py | 2 + NIPTool/server/views.py | 135 ++++++++++++------ 17 files changed, 264 insertions(+), 134 deletions(-) rename NIPTool/server/templates/batch/{fetal_fraction.html => plots/FF.html} (79%) rename NIPTool/server/templates/batch/{fetal_fraction_XY.html => plots/FF_XY.html} (81%) rename NIPTool/server/templates/batch/{ => plots}/NCV.html (81%) rename NIPTool/server/templates/batch/{ => plots}/coverage.html (76%) create mode 100644 NIPTool/server/templates/batch/tabs/FF.html create mode 100644 NIPTool/server/templates/batch/tabs/FF_XY.html create mode 100644 NIPTool/server/templates/batch/tabs/NCV.html create mode 100644 NIPTool/server/templates/batch/tabs/coverage.html rename NIPTool/server/templates/batch/{batch.html => tabs/table.html} (98%) diff --git a/NIPTool/server/templates/batch/fetal_fraction.html b/NIPTool/server/templates/batch/plots/FF.html similarity index 79% rename from NIPTool/server/templates/batch/fetal_fraction.html rename to NIPTool/server/templates/batch/plots/FF.html index c586e921..96525a9c 100644 --- a/NIPTool/server/templates/batch/fetal_fraction.html +++ b/NIPTool/server/templates/batch/plots/FF.html @@ -1,26 +1,3 @@ -{% extends 'layout/layout.html' %} - - - -{% block body %} -{% include 'layout/navigation.html' %} -
- {% include 'batch/header.html' %} -
-
-
-
-
-
-
-
-
-
-
-
-
-{% endblock %} - {% block scripts %} -{% endblock %} - - - +{% endblock %} \ No newline at end of file diff --git a/NIPTool/server/templates/batch/NCV.html b/NIPTool/server/templates/batch/plots/NCV.html similarity index 81% rename from NIPTool/server/templates/batch/NCV.html rename to NIPTool/server/templates/batch/plots/NCV.html index fd232712..0d8d3b22 100644 --- a/NIPTool/server/templates/batch/NCV.html +++ b/NIPTool/server/templates/batch/plots/NCV.html @@ -1,20 +1,6 @@ -{% extends 'layout/layout.html' %} -{% block body %} -{% include 'layout/navigation.html' %} -
- {% include 'batch/header.html' %} -
-
-
-


-
-
-
-
-{% endblock %} - {% block scripts %} diff --git a/NIPTool/server/templates/batch/coverage.html b/NIPTool/server/templates/batch/plots/coverage.html similarity index 76% rename from NIPTool/server/templates/batch/coverage.html rename to NIPTool/server/templates/batch/plots/coverage.html index b9b6ecbb..2f44eb6c 100644 --- a/NIPTool/server/templates/batch/coverage.html +++ b/NIPTool/server/templates/batch/plots/coverage.html @@ -1,19 +1,3 @@ -{% extends 'layout/layout.html' %} - -{% block body %} -{% include 'layout/navigation.html' %} -
- {% include 'batch/header.html' %} -
-
-
-
-
-
-
-
-{% endblock %} - {% block scripts %}