aboutsummaryrefslogtreecommitdiff
path: root/uploader/templates
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-09-26 17:03:31 -0500
committerFrederick Muriuki Muriithi2024-09-26 17:03:31 -0500
commit1b6b9a90a4dbe38aefc00293309fb48d9f478b13 (patch)
tree0a78c1e0e8f7a69a1282c817e23cd5ed267a31f4 /uploader/templates
parentd3122c73497650d7165afb8fc6c75f2650ef956c (diff)
downloadgn-uploader-1b6b9a90a4dbe38aefc00293309fb48d9f478b13.tar.gz
Start building up the view dataset endpoint
Diffstat (limited to 'uploader/templates')
-rw-r--r--uploader/templates/phenotypes/view-dataset.html82
1 files changed, 82 insertions, 0 deletions
diff --git a/uploader/templates/phenotypes/view-dataset.html b/uploader/templates/phenotypes/view-dataset.html
new file mode 100644
index 0000000..219e61e
--- /dev/null
+++ b/uploader/templates/phenotypes/view-dataset.html
@@ -0,0 +1,82 @@
+{%extends "phenotypes/base.html"%}
+{%from "flash_messages.html" import flash_all_messages%}
+{%from "populations/macro-display-population-card.html" import display_population_card%}
+
+{%block title%}Phenotypes{%endblock%}
+
+{%block pagetitle%}Phenotypes{%endblock%}
+
+{%block lvl4_breadcrumbs%}
+<li {%if activelink=="view-datasets"%}
+ class="breadcrumb-item active"
+ {%else%}
+ class="breadcrumb-item"
+ {%endif%}>
+ <a href="{{url_for('species.populations.phenotypes.view_datasets',
+ species_id=species.SpeciesId,
+ population_id=population.Id)}}">View Datasets</a>
+</li>
+{%endblock%}
+
+{%block contents%}
+{{flash_all_messages()}}
+
+<div class="row">
+ <p>The basic dataset details are:</p>
+
+ <table class="table">
+ <thead>
+ <tr>
+ <th>Name</th>
+ <th>Full Name</th>
+ <th>Short Name</th>
+ </tr>
+ </thead>
+
+ <tbody>
+ <tr>
+ <td><a href="{{url_for('species.populations.phenotypes.view_dataset',
+ species_id=species.SpeciesId,
+ population_id=population.Id,
+ dataset_id=dataset.Id)}}">{{dataset.Name}}</a></td>
+ <td>{{dataset.FullName}}</td>
+ <td>{{dataset.ShortName}}</td>
+ </tr>
+ </tbody>
+ </table>
+</div>
+
+<div class="row">
+ <h2>Phenotype Data</h2>
+
+ <p>The dataset has the following phenotypes:</p>
+
+ <table class="table">
+ <thead>
+ <tr>
+ <th>#</th>
+ <th>Name</th>
+ <th>Full Name</th>
+ <th>Short Name</th>
+ </tr>
+ </thead>
+
+ <tbody>
+ {%for pheno in phenotypes%}
+ <tr>
+ <td>{{pheno.sequence_number}}</td>
+ <td>{{pheno.Id}}</td>
+ <td>{{pheno.FullName}}</td>
+ <td>{{pheno.ShortName}}</td>
+ </tr>
+ {%else%}
+ <tr><td colspan="5"></td></tr>
+ {%endfor%}
+ </tbody>
+ </table>
+</div>
+{%endblock%}
+
+{%block sidebarcontents%}
+{{display_population_card(species, population)}}
+{%endblock%}