aboutsummaryrefslogtreecommitdiff
path: root/qc_app/templates/index.html
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-01-20 09:57:23 +0300
committerFrederick Muriuki Muriithi2024-01-20 09:57:23 +0300
commitcdd4dc456e56bb4eb055e1cb7f2518d45fb3bfb9 (patch)
tree73248acbadd5014f2b26da41da3098f1ac5ecc1e /qc_app/templates/index.html
parent53b1e7cb181380a24aab4cbc7a9634b2d8dd2d29 (diff)
downloadgn-uploader-cdd4dc456e56bb4eb055e1cb7f2518d45fb3bfb9.tar.gz
Fetch sample/case names from database
Fetch the sample/case names from the database rather than from a static file in the repository. Issue: https://issues.genenetwork.org/issues/quality-control/read-samples-from-database-by-species
Diffstat (limited to 'qc_app/templates/index.html')
-rw-r--r--qc_app/templates/index.html17
1 files changed, 15 insertions, 2 deletions
diff --git a/qc_app/templates/index.html b/qc_app/templates/index.html
index a454dd2..358b521 100644
--- a/qc_app/templates/index.html
+++ b/qc_app/templates/index.html
@@ -1,4 +1,5 @@
{%extends "base.html"%}
+{%from "flash_messages.html" import flash_all_messages%}
{%block title%}Data Upload{%endblock%}
@@ -55,6 +56,18 @@
{%endwith%}
<fieldset>
+ <label for="select_species01">Species</label>
+ <select id="select_species01"
+ name="speciesid"
+ required="required">
+ <option value="">Select species</option>
+ {%for aspecies in species%}
+ <option value="{{aspecies.SpeciesId}}">{{aspecies.MenuName}}</option>
+ {%endfor%}
+ </select>
+ </fieldset>
+
+ <fieldset>
<legend>file type</legend>
<input type="radio" name="filetype" value="average" id="filetype_average"
@@ -111,8 +124,8 @@
<form method="POST" action="{{url_for('samples.select_species')}}">
<legend class="heading">upload samples</legend>
<fieldset>
- <label for="select:species">Species</label>
- <select id="select:species" name="species_id" required="required">
+ <label for="select_species02">Species</label>
+ <select id="select_species02" name="species_id" required="required">
<option value="">Select species</option>
{%for spec in species%}
<option value="{{spec.SpeciesId}}">{{spec.MenuName}}</option>