From 493f8fbe747650a4fbac2e0b153ad0074b4f91e4 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 6 Dec 2023 13:00:53 +0300 Subject: Feature: Upload Samples/Cases Implements the code enabling the upload of the samples/cases to the database. --- qc_app/templates/flash_messages.html | 25 ++++++ qc_app/templates/index.html | 35 +++++++- qc_app/templates/samples/select-population.html | 105 +++++++++++++++++++++++ qc_app/templates/samples/upload-samples.html | 107 ++++++++++++++++++++++++ 4 files changed, 269 insertions(+), 3 deletions(-) create mode 100644 qc_app/templates/flash_messages.html create mode 100644 qc_app/templates/samples/select-population.html create mode 100644 qc_app/templates/samples/upload-samples.html (limited to 'qc_app/templates') diff --git a/qc_app/templates/flash_messages.html b/qc_app/templates/flash_messages.html new file mode 100644 index 0000000..b7af178 --- /dev/null +++ b/qc_app/templates/flash_messages.html @@ -0,0 +1,25 @@ +{%macro flash_all_messages()%} +{%with messages = get_flashed_messages(with_categories=true)%} +{%if messages:%} +
This application assumes that you are familiar with the basics of data @@ -26,7 +28,7 @@
+ {%endblock%} diff --git a/qc_app/templates/samples/select-population.html b/qc_app/templates/samples/select-population.html new file mode 100644 index 0000000..24decb4 --- /dev/null +++ b/qc_app/templates/samples/select-population.html @@ -0,0 +1,105 @@ +{%extends "base.html"%} +{%from "flash_messages.html" import flash_messages%} + +{%block title%}Select Grouping/Population{%endblock%} + +{%block contents%} +We organise the samples/cases/strains in a hierarchichal form, starting + with species at the very top. Under species, we have a + grouping in terms of the relevant population + (e.g. Inbred populations, cell tissue, etc.)
+OR
+ + + +{%endblock%} + + +{%block javascript%} +{%endblock%} diff --git a/qc_app/templates/samples/upload-samples.html b/qc_app/templates/samples/upload-samples.html new file mode 100644 index 0000000..b19e38c --- /dev/null +++ b/qc_app/templates/samples/upload-samples.html @@ -0,0 +1,107 @@ +{%extends "base.html"%} +{%from "flash_messages.html" import flash_messages%} + +{%block title%}Upload Samples{%endblock%} + +{%block css%} + +{%endblock%} + +{%block contents%} +You can now upload a character-separated value (CSV) file that contains + details about your samples. The CSV file should have the following fields: +