aboutsummaryrefslogtreecommitdiff
path: root/uploader/templates/phenotypes
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-02-18 11:10:29 -0600
committerFrederick Muriuki Muriithi2025-02-18 11:10:29 -0600
commit3c960f6cf885934e5f390390c9e0fae0d6b93d5d (patch)
treef62bcadb0be4b6239f2de9bf1b927461a7c4ddb7 /uploader/templates/phenotypes
parent14714a035e267a17c7111aec7b047104a1c34d36 (diff)
downloadgn-uploader-3c960f6cf885934e5f390390c9e0fae0d6b93d5d.tar.gz
Enable creating new populations on the "Phenotype Data" path.
Enable creating new populations in the case where the population a user wants to use does not exist in the database.
Diffstat (limited to 'uploader/templates/phenotypes')
-rw-r--r--uploader/templates/phenotypes/select-population.html20
1 files changed, 13 insertions, 7 deletions
diff --git a/uploader/templates/phenotypes/select-population.html b/uploader/templates/phenotypes/select-population.html
index eafd4a7..d6e6aa1 100644
--- a/uploader/templates/phenotypes/select-population.html
+++ b/uploader/templates/phenotypes/select-population.html
@@ -11,18 +11,24 @@
{%block contents%}
{{flash_all_messages()}}
-<div class="row">
- <p>Select the population for your phenotypes to view and manage the phenotype
- datasets that relate to it.</p>
-</div>
<div class="row">
- {{select_population_form(url_for("species.populations.phenotypes.select_population",
- species_id=species.SpeciesId),
- populations)}}
+ {{select_population_form(url_for("species.populations.phenotypes.select_population", species_id=species.SpeciesId), species, populations)}}
</div>
{%endblock%}
{%block sidebarcontents%}
{{display_species_card(species)}}
{%endblock%}
+
+{%block javascript%}
+<script type="text/javascript"
+ src="{{url_for('base.datatables',
+ filename='js/jquery.dataTables.js')}}"></script>
+<script type="text/javascript" src="/static/js/populations.js"></script>
+<script type="text/javascript">
+ $(function() {
+ populationDataTable(JSON.parse($("#tbl-select-population").attr("data-populations-list")));
+ });
+ </script>
+{%endblock%}