aboutsummaryrefslogtreecommitdiff
path: root/uploader/templates/phenotypes/macro-display-pheno-dataset-card.html
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-10-10 16:18:52 -0500
committerFrederick Muriuki Muriithi2024-10-10 16:30:43 -0500
commit4f994b79ecee851ea1cd0fa0699ee822c8884bc4 (patch)
tree5250f3a9b9b4a0b7fab8ae919167562b5048d654 /uploader/templates/phenotypes/macro-display-pheno-dataset-card.html
parent71b79a670cf59a517f9c0bc4f6f11894c2a5d44d (diff)
downloadgn-uploader-4f994b79ecee851ea1cd0fa0699ee822c8884bc4.tar.gz
Build UI to add new phenotypes.
Build the UI and set up styling. This is not working currently.
Diffstat (limited to 'uploader/templates/phenotypes/macro-display-pheno-dataset-card.html')
-rw-r--r--uploader/templates/phenotypes/macro-display-pheno-dataset-card.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/uploader/templates/phenotypes/macro-display-pheno-dataset-card.html b/uploader/templates/phenotypes/macro-display-pheno-dataset-card.html
new file mode 100644
index 0000000..1121443
--- /dev/null
+++ b/uploader/templates/phenotypes/macro-display-pheno-dataset-card.html
@@ -0,0 +1,23 @@
+{%from "populations/macro-display-population-card.html" import display_population_card%}
+
+{%macro display_pheno_dataset_card(species, population, dataset)%}
+{{display_population_card(species, population)}}
+
+<div class="card">
+ <div class="card-body">
+ <h5 class="card-title">Phenotypes' Dataset</h5>
+ <div class="card-text">
+ <dl>
+ <dt>Name</dt>
+ <dd>{{dataset.Name}}</dd>
+
+ <dt>Full Name</dt>
+ <dd>{{dataset.FullName}}</dd>
+
+ <dt>Short Name</dt>
+ <dd>{{dataset.ShortName}}</dd>
+ </dl>
+ </div>
+ </div>
+</div>
+{%endmacro%}