From be33b005da747058e5e133e7c1edbf8dbca12705 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 5 May 2025 13:04:07 -0500 Subject: Move previews below each item rather than being in the sidebar. --- uploader/templates/phenotypes/add-phenotypes-raw-files.html | 10 ++++------ uploader/templates/phenotypes/macro-display-preview-table.html | 8 +++----- 2 files changed, 7 insertions(+), 11 deletions(-) (limited to 'uploader') diff --git a/uploader/templates/phenotypes/add-phenotypes-raw-files.html b/uploader/templates/phenotypes/add-phenotypes-raw-files.html index 5709491..e6d6dca 100644 --- a/uploader/templates/phenotypes/add-phenotypes-raw-files.html +++ b/uploader/templates/phenotypes/add-phenotypes-raw-files.html @@ -134,6 +134,7 @@ "Phenotypes Descriptions" documentation section below.

')}} + {{display_preview_table("tbl-preview-pheno-desc", "phenotype descriptions")}}
@@ -161,6 +162,7 @@ "Phenotypes Data" documentation section below.

')}} + {{display_preview_table("tbl-preview-pheno-data", "phenotype data")}} {%if population.Family in families_with_se_and_n%}
@@ -185,6 +187,7 @@ "Phenotypes Data" documentation section below.

')}} + {{display_preview_table("tbl-preview-pheno-se", "standard errors")}}
@@ -210,6 +213,7 @@ "Phenotypes Data" documentation section below.

')}} + {{display_preview_table("tbl-preview-pheno-n", "number of samples/individuals")}} {%endif%} {%endblock%} @@ -346,12 +350,6 @@ {%endblock%} {%block sidebarcontents%} -{{display_preview_table("tbl-preview-pheno-desc", "descriptions")}} -{{display_preview_table("tbl-preview-pheno-data", "data")}} -{%if population.Family in families_with_se_and_n%} -{{display_preview_table("tbl-preview-pheno-se", "standard errors")}} -{{display_preview_table("tbl-preview-pheno-n", "number of samples")}} -{%endif%} {{display_pheno_dataset_card(species, population, dataset)}} {%endblock%} diff --git a/uploader/templates/phenotypes/macro-display-preview-table.html b/uploader/templates/phenotypes/macro-display-preview-table.html index f54c53e..5a4c422 100644 --- a/uploader/templates/phenotypes/macro-display-preview-table.html +++ b/uploader/templates/phenotypes/macro-display-preview-table.html @@ -1,7 +1,7 @@ {%macro display_preview_table(tableid, filetype)%} -
+
-
Phenotypes '{{filetype | title}}' File Preview
+
{{filetype | title}}: File Preview
@@ -9,9 +9,7 @@ - +
- Provide a phenotype '{{filetype | lower}}' file to preview. -
-- cgit v1.2.3