From dea29486883b5b13369a6d2c5392ec01a24555ee Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 13 Dec 2024 15:30:29 -0600 Subject: Refactor template to extend common base Extend the common base template in order to reuse the common parts for uploading phenotypes. --- .../add-phenotypes-with-rqtl2-bundle.html | 82 +++++++--------------- 1 file changed, 24 insertions(+), 58 deletions(-) (limited to 'uploader') diff --git a/uploader/templates/phenotypes/add-phenotypes-with-rqtl2-bundle.html b/uploader/templates/phenotypes/add-phenotypes-with-rqtl2-bundle.html index a1953df..8f67baa 100644 --- a/uploader/templates/phenotypes/add-phenotypes-with-rqtl2-bundle.html +++ b/uploader/templates/phenotypes/add-phenotypes-with-rqtl2-bundle.html @@ -1,4 +1,4 @@ -{%extends "phenotypes/base.html"%} +{%extends "phenotypes/add-phenotypes-base.html"%} {%from "flash_messages.html" import flash_all_messages%} {%from "macro-table-pagination.html" import table_pagination%} {%from "phenotypes/macro-display-pheno-dataset-card.html" import display_pheno_dataset_card%} @@ -20,54 +20,35 @@ {%endblock%} -{%block contents%} -{{flash_all_messages()}} - -
-
- Add New Phenotypes - -
-

Select the zip file bundle containing information on the phenotypes you - wish to upload, then click the "Upload Phenotypes" button below to - upload the data.

-

If you wish to upload the files individually instead, - +

If you wish to upload the files individually instead, + click here.

-

See the File Formats section below - to get an understanding of what is expected of the bundle files you - upload.

-

This will not update any existing phenotypes!

-
- -
- - -
+ title="">click here.

+

See the File Formats section below + to get an understanding of what is expected of the bundle files you + upload.

+{%endblock%} -
- -
-
+{%block frm_add_phenotypes_elements%} +
+ +
+{%endblock%} +{%block page_documentation%}

File Formats

We accept an extended form of the @@ -219,19 +200,4 @@ pheno_transposed: True, then the file will be a matrix of phenotypes × individuals.

- -
-

Notes for Devs (well… Fred, really.)

-

Use the following resources for automated retrieval of certain data

- -
- -{%endblock%} - -{%block sidebarcontents%} -{{display_pheno_dataset_card(species, population, dataset)}} {%endblock%} -- cgit v1.2.3