From be2c1cd490bf11b3d5582065d8e88ab44f891bd8 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 29 Jan 2025 12:55:46 -0600 Subject: Display list of phenotypes using DataTables. --- uploader/templates/phenotypes/view-dataset.html | 67 ++++++++++++++++--------- 1 file changed, 43 insertions(+), 24 deletions(-) (limited to 'uploader/templates') diff --git a/uploader/templates/phenotypes/view-dataset.html b/uploader/templates/phenotypes/view-dataset.html index 011f8f6..4e1be6b 100644 --- a/uploader/templates/phenotypes/view-dataset.html +++ b/uploader/templates/phenotypes/view-dataset.html @@ -5,6 +5,11 @@ {%block title%}Phenotypes{%endblock%} +{%block css%} + +{%endblock%} + {%block pagetitle%}Phenotypes{%endblock%} {%block lvl4_breadcrumbs%} @@ -56,12 +61,7 @@

Phenotype Data

- -

This dataset has a total of {{phenotype_count}} phenotypes.

- - {{table_pagination(start_from, count, phenotype_count, url_for('species.populations.phenotypes.view_dataset', species_id=species.SpeciesId, population_id=population.Id, dataset_id=dataset.Id), "phenotypes")}} - - +
@@ -70,24 +70,7 @@ - - {%for pheno in phenotypes%} - - - - - - {%else%} - - {%endfor%} - +
#
{{pheno.sequence_number}} - {{pheno.InbredSetCode}}_{{pheno["pxr.Id"]}}{{pheno.Post_publication_description or pheno.Pre_publication_abbreviation or pheno.Original_description}}
{%endblock%} @@ -95,3 +78,39 @@ {%block sidebarcontents%} {{display_population_card(species, population)}} {%endblock%} + + +{%block javascript%} + + +{%endblock%} -- cgit v1.2.3