From 754e8f214b940e05298cb360ed829f5c685d55a5 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 25 Jul 2024 11:07:33 -0500 Subject: Rename module: qc_app --> uploader --- uploader/templates/samples/select-population.html | 99 +++++++++++++++ uploader/templates/samples/select-species.html | 30 +++++ uploader/templates/samples/upload-failure.html | 27 +++++ uploader/templates/samples/upload-progress.html | 22 ++++ uploader/templates/samples/upload-samples.html | 139 ++++++++++++++++++++++ uploader/templates/samples/upload-success.html | 18 +++ 6 files changed, 335 insertions(+) create mode 100644 uploader/templates/samples/select-population.html create mode 100644 uploader/templates/samples/select-species.html create mode 100644 uploader/templates/samples/upload-failure.html create mode 100644 uploader/templates/samples/upload-progress.html create mode 100644 uploader/templates/samples/upload-samples.html create mode 100644 uploader/templates/samples/upload-success.html (limited to 'uploader/templates/samples') diff --git a/uploader/templates/samples/select-population.html b/uploader/templates/samples/select-population.html new file mode 100644 index 0000000..da19ddc --- /dev/null +++ b/uploader/templates/samples/select-population.html @@ -0,0 +1,99 @@ +{%extends "base.html"%} +{%from "flash_messages.html" import flash_messages%} + +{%block title%}Select Grouping/Population{%endblock%} + +{%block contents%} +

Select grouping/population

+ +
+

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.)

+
+ +
+ select grouping/population + {{flash_messages("error-select-population")}} + + + +
+ + +
+ + +
+ +

OR

+ +
+ create new grouping/population + {{flash_messages("error-create-population")}} + + +
+ mandatory + + + + + + +
+
+ Optional + + + + + + + + + +
+ + +
+ +{%endblock%} + + +{%block javascript%} +{%endblock%} diff --git a/uploader/templates/samples/select-species.html b/uploader/templates/samples/select-species.html new file mode 100644 index 0000000..edadc61 --- /dev/null +++ b/uploader/templates/samples/select-species.html @@ -0,0 +1,30 @@ +{%extends "base.html"%} +{%from "flash_messages.html" import flash_all_messages%} + +{%block title%}Select Grouping/Population{%endblock%} + +{%block contents%} +

upload samples/cases

+ +

We need to know what species your data belongs to.

+ +{{flash_all_messages()}} + +
+ upload samples +
+ + +
+ + +
+{%endblock%} diff --git a/uploader/templates/samples/upload-failure.html b/uploader/templates/samples/upload-failure.html new file mode 100644 index 0000000..09e2ecf --- /dev/null +++ b/uploader/templates/samples/upload-failure.html @@ -0,0 +1,27 @@ +{%extends "base.html"%} +{%from "cli-output.html" import cli_output%} + +{%block title%}Samples Upload Failure{%endblock%} + +{%block contents%} +

{{job.job_name}}

+ +

There was a failure attempting to upload the samples.

+ +

Here is some information to help with debugging the issue. Provide this + information to the developer/maintainer.

+ +

Debugging Information

+ + +

stdout

+{{cli_output(job, "stdout")}} + +

stderr

+{{cli_output(job, "stderr")}} + +{%endblock%} diff --git a/uploader/templates/samples/upload-progress.html b/uploader/templates/samples/upload-progress.html new file mode 100644 index 0000000..7bb02be --- /dev/null +++ b/uploader/templates/samples/upload-progress.html @@ -0,0 +1,22 @@ +{%extends "base.html"%} +{%from "cli-output.html" import cli_output%} + +{%block extrameta%} + +{%endblock%} + +{%block title%}Job Status{%endblock%} + +{%block contents%} +

{{job.job_name}}

+ +

+status: +{{job["status"]}} ({{job.get("message", "-")}})
+

+ +

saving to database...

+ +{{cli_output(job, "stdout")}} + +{%endblock%} diff --git a/uploader/templates/samples/upload-samples.html b/uploader/templates/samples/upload-samples.html new file mode 100644 index 0000000..e62de57 --- /dev/null +++ b/uploader/templates/samples/upload-samples.html @@ -0,0 +1,139 @@ +{%extends "base.html"%} +{%from "flash_messages.html" import flash_messages%} + +{%block title%}Upload Samples{%endblock%} + +{%block css%}{%endblock%} + +{%block contents%} +

upload samples

+ +{{flash_messages("alert-success")}} + +

You can now upload a character-separated value (CSV) file that contains + details about your samples. The CSV file should have the following fields: +

+
Name
+
The primary name for the sample
+ +
Name2
+
A secondary name for the sample. This can simply be the same as + Name above. This field MUST contain a + value.
+ +
Symbol
+
A symbol for the sample. Can be an empty field.
+ +
Alias
+
An alias for the sample. Can be an empty field.
+
+

+ +
+ upload samples + +
+ + + {{species.SpeciesName}} [{{species.MenuName}}] +
+ +
+ + + {{population.Name}} [{{population.FullName}}] +
+ +
+ + +
+ +
+ + + + + If you select 'Other' for the field separator value, + enter the character that separates the fields in your CSV file in the form + field below. + +
+ +
+ + + + Select this if the first line in your file contains headings for the + columns. + +
+ +
+ + + + If there is a character delimiting the string texts within particular + fields in your CSV, provide the character here. This can be left blank if + no such delimiters exist in your file. + +
+ + +
+ + + + + + + + + + + + + + + + + + +
preview content
NameName2SymbolAlias
+ Please make some selections to preview the data.
+ +{%endblock%} + + +{%block javascript%} + +{%endblock%} diff --git a/uploader/templates/samples/upload-success.html b/uploader/templates/samples/upload-success.html new file mode 100644 index 0000000..cb745c3 --- /dev/null +++ b/uploader/templates/samples/upload-success.html @@ -0,0 +1,18 @@ +{%extends "base.html"%} +{%from "cli-output.html" import cli_output%} + +{%block title%}Job Status{%endblock%} + +{%block contents%} +

{{job.job_name}}

+ +

+status: +{{job["status"]}} ({{job.get("message", "-")}})
+

+ +

Successfully uploaded the samples.

+ +{{cli_output(job, "stdout")}} + +{%endblock%} -- cgit v1.2.3