about summary refs log tree commit diff
path: root/qc_app/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'qc_app/templates/index.html')
-rw-r--r--qc_app/templates/index.html35
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%}