aboutsummaryrefslogtreecommitdiff
path: root/qc_app/templates
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-07-07 09:24:29 +0300
committerFrederick Muriuki Muriithi2022-07-07 09:24:29 +0300
commit23a5e2c8dc2cbbf1ce55c22f80519824e413b883 (patch)
treeaa1d39e3ba4f870b2adbb7644ff8dc3ad2ad7bd5 /qc_app/templates
parent2e12c23648be1b6827f1717ca143359d29043a39 (diff)
downloadgn-uploader-23a5e2c8dc2cbbf1ce55c22f80519824e413b883.tar.gz
Provide selection for GeneChips
The GeneChipId value is required for the data being inserted, so this commit provides the UI to enable selection of the chip.
Diffstat (limited to 'qc_app/templates')
-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>