aboutsummaryrefslogtreecommitdiff
path: root/qc_app/templates/select_dataset.html
diff options
context:
space:
mode:
Diffstat (limited to 'qc_app/templates/select_dataset.html')
-rw-r--r--qc_app/templates/select_dataset.html40
1 files changed, 37 insertions, 3 deletions
diff --git a/qc_app/templates/select_dataset.html b/qc_app/templates/select_dataset.html
index 5fefccc..db48694 100644
--- a/qc_app/templates/select_dataset.html
+++ b/qc_app/templates/select_dataset.html
@@ -3,10 +3,13 @@
{%block title%}Select Dataset{%endblock%}
{%block contents%}
-<h1 class="heading">{{job_name}}: select dataset</h2>
+<h1 class="heading">{{filename}}: select dataset</h2>
-<form method="POST" data-menu-content="{{menu_contents}}">
- <input type="hidden" name="job_id" value="{{job_id}}" />
+<form method="POST" action="{{url_for('dbinsert.insert_data')}}"
+ id="select-dataset-form"
+ data-menu-content="{{menu_contents}}"
+ data-genechips="{{genechips_data}}">
+ <input type="hidden" name="filename" value="{{filename}}" />
<fieldset>
<label for="species">species:</label>
@@ -57,6 +60,37 @@
</select>
</fieldset>
+ <table id="genechips-table">
+ <thead>
+ <tr>
+ <th>Select</th>
+ <th>GeneChip Name</th>
+ <th>Name</th>
+ <th>GeoPlatform</th>
+ <th>GO Tree Value</th>
+ </tr>
+ </thead>
+
+ <tbody>
+ {%for chip in genechips:%}
+ <tr>
+ <td>
+ <input type="radio" name="genechipid" value="{{chip['GeneChipId']}}"
+ required="required" />
+ </td>
+ <td>{{chip["GeneChipName"]}}</td>
+ <td>{{chip["Name"]}}</td>
+ <td>{{chip["GeoPlatform"]}}</td>
+ <td>{{chip["GO_tree_value"]}}</td>
+ </tr>
+ {%else%}
+ <tr>
+ <td colspan="5">No chips found for selected species</td>
+ </tr>
+ {%endfor%}
+ </tbody>
+ </table>
+
<fieldset>
<input type="submit" class="btn btn-main" value="update database" />
</fieldset>