From 3c8ec9af68d593e7e5eef52aca3d001e22c8e0f7 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 9 Sep 2024 16:39:50 -0500 Subject: Enable samples uploads. --- uploader/templates/samples/list-samples.html | 5 +- uploader/templates/samples/upload-failure.html | 37 ++++++ uploader/templates/samples/upload-progress.html | 31 +++++ uploader/templates/samples/upload-samples.html | 155 ++++++++++++++++++++++++ uploader/templates/samples/upload-success.html | 36 ++++++ 5 files changed, 262 insertions(+), 2 deletions(-) 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/list-samples.html b/uploader/templates/samples/list-samples.html index a29dc1c..8f1bf16 100644 --- a/uploader/templates/samples/list-samples.html +++ b/uploader/templates/samples/list-samples.html @@ -97,7 +97,9 @@
-
@@ -111,4 +113,3 @@
{%block sidebarcontents%}
{{display_population_card(species, population)}}
{%endblock%}
-
diff --git a/uploader/templates/samples/upload-failure.html b/uploader/templates/samples/upload-failure.html
new file mode 100644
index 0000000..458ab55
--- /dev/null
+++ b/uploader/templates/samples/upload-failure.html
@@ -0,0 +1,37 @@
+{%extends "base.html"%}
+{%from "cli-output.html" import cli_output%}
+{%from "populations/macro-display-population-card.html" import display_population_card%}
+
+{%block title%}Samples Upload Failure{%endblock%}
+
+{%block contents%}
+ 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.
+status:
+{{job["status"]}} ({{job.get("message", "-")}}) saving to database... You can now upload a character-separated value (CSV) file that contains
+ details about your samples. The CSV file should have the following fields:
+
+ status:
+ {{job["status"]}} ({{job.get("message", "-")}}) Successfully uploaded the samples.
+
+ View samples
+
+ {{job.job_name[0:50]}}…
+
+Debugging Information
+
+
+stdout
+{{cli_output(job, "stdout")}}
+stderr
+{{cli_output(job, "stderr")}}
+{{job.job_name[0:50]}}…
+
+
+
+
+
+Preview File Content
+
+
+
+
+
+
+
+
+ Name
+ Name2
+ Symbol
+ Alias
+
+
+
+
+ Please make some selections in the form above to preview the data.
+ {{job.job_name[0:50]}}…
+
+
+