diff options
author | Frederick Muriuki Muriithi | 2023-12-06 13:00:53 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-12-06 13:00:53 +0300 |
commit | 493f8fbe747650a4fbac2e0b153ad0074b4f91e4 (patch) | |
tree | 578fce7f9548c4a850a02b5817865e5fcb73d007 /qc_app/templates/index.html | |
parent | 968fc27c54099ec1ed5d1770925aed98013ecf55 (diff) | |
download | gn-uploader-493f8fbe747650a4fbac2e0b153ad0074b4f91e4.tar.gz |
Feature: Upload Samples/Cases
Implements the code enabling the upload of the samples/cases to the database.
Diffstat (limited to 'qc_app/templates/index.html')
-rw-r--r-- | qc_app/templates/index.html | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/qc_app/templates/index.html b/qc_app/templates/index.html index 2db6048..e534bcb 100644 --- a/qc_app/templates/index.html +++ b/qc_app/templates/index.html @@ -1,9 +1,11 @@ {%extends "base.html"%} -{%block title%}Upload File{%endblock%} +{%block title%}Data Upload{%endblock%} {%block contents%} -<h1 class="heading">upload file</h1> +<h1 class="heading">data upload</h1> + +<h2>Expression Data</h2> <div id="explainer"> <p>This application assumes that you are familiar with the basics of data @@ -26,7 +28,7 @@ <form action="{{url_for('entry.upload_file')}}" method="POST" enctype="multipart/form-data"> - <legend class="heading">upload file</legend> + <legend class="heading">upload expression data</legend> {%with messages = get_flashed_messages(with_categories=True) %} {%if messages %} <div class="alerts"> @@ -81,6 +83,33 @@ </button> </form> </div> + +<h2>samples/cases</h2> + +<div> + <p>For the expression data above, you need the samples/cases in your file to + already exist in the GeneNetwork database. If there are any samples that do + not already exist the upload of the expression data will fail.</p> + <p>This section gives you the opportunity to upload any missing samples</p> +</div> + +<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"> + <option value="">Select species</option> + {%for spec in species%} + <option value="{{spec.SpeciesId}}">{{spec.MenuName}}</option> + {%endfor%} + </select> + </fieldset> + + <fieldset> + <input type="submit" value="submit" class="btn btn-main form-col-2" /> + </fieldset> +</form> + {%endblock%} |