From d02cef83c3c0b3f3098df1a7e7eeaf90430f784a Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 8 Feb 2024 15:54:32 +0300 Subject: R/qtl2 QC: Set up scaffolding for QC UI Set up the scaffolding for the flows and UI that will be used when running QC against the uploaded R/qtl2 bundle. This will be fleshed out later, and the UI is likely to change somewhat, down the line. --- qc_app/templates/base.html | 2 +- qc_app/templates/rqtl2/rqtl2-qc-job-error.html | 32 ++++++++++++++++++++ qc_app/templates/rqtl2/rqtl2-qc-job-status.html | 29 +++++++++++++++++++ qc_app/templates/rqtl2/rqtl2-qc-job-success.html | 37 ++++++++++++++++++++++++ 4 files changed, 99 insertions(+), 1 deletion(-) create mode 100644 qc_app/templates/rqtl2/rqtl2-qc-job-error.html create mode 100644 qc_app/templates/rqtl2/rqtl2-qc-job-status.html create mode 100644 qc_app/templates/rqtl2/rqtl2-qc-job-success.html (limited to 'qc_app/templates') diff --git a/qc_app/templates/base.html b/qc_app/templates/base.html index 3b701bc..2228356 100644 --- a/qc_app/templates/base.html +++ b/qc_app/templates/base.html @@ -6,7 +6,7 @@ {%block extrameta%}{%endblock%} - QC: {%block title%}{%endblock%} + GN Uploader: {%block title%}{%endblock%} {%block css%}{%endblock%} diff --git a/qc_app/templates/rqtl2/rqtl2-qc-job-error.html b/qc_app/templates/rqtl2/rqtl2-qc-job-error.html new file mode 100644 index 0000000..5d2ebee --- /dev/null +++ b/qc_app/templates/rqtl2/rqtl2-qc-job-error.html @@ -0,0 +1,32 @@ +{%extends "base.html"%} +{%from "cli-output.html" import cli_output%} + +{%block title%}R/qtl2 bundle: QC Job Error{%endblock%} + +{%block contents%} +

R/qtl2 bundle: QC job Error

+ +
+

The R/qtl2 bundle has failed some Quality Control checks.

+

We list below some of the errors that need to be fixed before the data can + be uploaded onto GeneNetwork.

+
+ +

Errors

+ +

list errors here by file type, I think …

+ +

stdout

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

stderr

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

Log

+
+ {%for msg in messages%} + {{msg}}
+ {%endfor%} +
+ +{%endblock%} diff --git a/qc_app/templates/rqtl2/rqtl2-qc-job-status.html b/qc_app/templates/rqtl2/rqtl2-qc-job-status.html new file mode 100644 index 0000000..85b8864 --- /dev/null +++ b/qc_app/templates/rqtl2/rqtl2-qc-job-status.html @@ -0,0 +1,29 @@ +{%extends "base.html"%} +{%from "flash_messages.html" import flash_messages%} + +{%block title%}Job Status{%endblock%} + +{%block extrameta%} + +{%endblock%} + +{%block contents%} +

R/qtl2 bundle: QC job status

+ +

R/qtl2 bundle: QC Job Status

+ +
+

The job:

+
+{{job}} +
+
+ +

Log

+
+ {%for msg in messages%} + {{msg}}
+ {%endfor%} +
+ +{%endblock%} diff --git a/qc_app/templates/rqtl2/rqtl2-qc-job-success.html b/qc_app/templates/rqtl2/rqtl2-qc-job-success.html new file mode 100644 index 0000000..396f241 --- /dev/null +++ b/qc_app/templates/rqtl2/rqtl2-qc-job-success.html @@ -0,0 +1,37 @@ +{%extends "base.html"%} +{%from "flash_messages.html" import flash_all_messages%} + +{%block title%}R/qtl2 Bundle: Quality Control Successful{%endblock%} + +{%block contents%} +

R/qtl2 Bundle: Quality Control Successful

+ +
+

The R/qtl2 bundle you uploaded has passed all quality control + checks successfully, and is now ready for uploading into the database.

+

Click "Continue" below to proceed.

+
+ + +
+ {{flash_all_messages()}} + + + + +
+ +
+
+ +{%endblock%} -- cgit v1.2.3