aboutsummaryrefslogtreecommitdiff
path: root/qc_app/templates
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-07-14 08:25:52 +0300
committerFrederick Muriuki Muriithi2022-07-19 05:08:17 +0300
commit1711bbad1409a4def4099d8721deb894a0d5e21c (patch)
treee7cd992a808061ed03fdad84dc30d29a54be9ca7 /qc_app/templates
parent8b5400fa04d4ca2e60d7e926800816245e2ab809 (diff)
downloadgn-uploader-1711bbad1409a4def4099d8721deb894a0d5e21c.tar.gz
Implement confirmation stage
Provide user with a confirmation stage where they can verify all the data before inserting into the database.
Diffstat (limited to 'qc_app/templates')
-rw-r--r--qc_app/templates/final_confirmation.html47
1 files changed, 47 insertions, 0 deletions
diff --git a/qc_app/templates/final_confirmation.html b/qc_app/templates/final_confirmation.html
new file mode 100644
index 0000000..f2de028
--- /dev/null
+++ b/qc_app/templates/final_confirmation.html
@@ -0,0 +1,47 @@
+{%extends "base.html"%}
+{%from "dbupdate_hidden_fields.html" import hidden_fields%}
+
+{%block title%}Confirmation{%endblock%}
+
+{%macro display_item(item_name, item_data):%}
+<li>
+ <strong>{{item_name}}</strong>
+ {%if item_data%}
+ <ul>
+ {%for term,value in item_data.items():%}
+ <li><strong>{{term}}:</strong> {{value}}</li>
+ {%endfor%}
+ </ul>
+ {%endif%}
+</li>
+{%endmacro%}
+
+{%block contents%}
+<h2 class="heading">Final Confirmation</h2>
+
+<div class="two-col-sep-col1">
+ <p><strong>Selected Data</strong></p>
+ <ul>
+ <li><strong>File</strong>
+ <ul>
+ <li><strong>Filename</strong>: {{filename}}</li>
+ <li><strong>File Type</strong>: {{filetype}}</li>
+ </ul>
+ </li>
+ {{display_item("Species", the_species)}}
+ {{display_item("Platform", platform)}}
+ {{display_item("Study", study)}}
+ {{display_item("Dataset", dataset)}}
+ </ul>
+</div>
+
+<form method="POST" action="#">
+ {{hidden_fields(
+ filename, filetype, species=species, genechipid=genechipid,
+ studyid=studyid,datasetid=datasetid)}}
+ <fieldset>
+ <input type="submit" class="btn btn-main" value="confirm" />
+ </fieldset>
+</form>
+</div>
+{%endblock%}