From d809997e8ca76d2441b58693078c6c9698e769bb Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 16 Jan 2024 12:38:30 +0300 Subject: Create intermediate step We do not have the option to modify the request and then redirect with the modification in place. To go around that, this commit creates an intermediate step that informs the user of their progress, while allowing us to store the filename for future steps. --- .../rqtl2/upload-rqtl2-bundle-step-01.html | 44 ++++++++++++++++++++++ qc_app/templates/rqtl2/upload-rqtl2-bundle.html | 44 ---------------------- 2 files changed, 44 insertions(+), 44 deletions(-) create mode 100644 qc_app/templates/rqtl2/upload-rqtl2-bundle-step-01.html delete mode 100644 qc_app/templates/rqtl2/upload-rqtl2-bundle.html (limited to 'qc_app/templates/rqtl2') diff --git a/qc_app/templates/rqtl2/upload-rqtl2-bundle-step-01.html b/qc_app/templates/rqtl2/upload-rqtl2-bundle-step-01.html new file mode 100644 index 0000000..6491e6b --- /dev/null +++ b/qc_app/templates/rqtl2/upload-rqtl2-bundle-step-01.html @@ -0,0 +1,44 @@ +{%extends "base.html"%} +{%from "flash_messages.html" import flash_messages%} + +{%block title%}Upload R/qtl2 Bundle{%endblock%} + +{%block contents%} +

Upload R/qtl2 Bundle

+ +
+ + + + {{flash_messages("error-rqtl2")}} + +
+ file upload + + +

Provide a valid R/qtl2 zip file here. In + particular, ensure your zip bundle contains exactly one control file and + the corresponding files mentioned in the control file.

+

The control file can be either a YAML or JSON file. ALL other + data files in the zip bundle should be CSV files.

+

See the + + R/qtl2 file format specifications for more details.

+
+
+ +
+
+ +{%endblock%} diff --git a/qc_app/templates/rqtl2/upload-rqtl2-bundle.html b/qc_app/templates/rqtl2/upload-rqtl2-bundle.html deleted file mode 100644 index 6491e6b..0000000 --- a/qc_app/templates/rqtl2/upload-rqtl2-bundle.html +++ /dev/null @@ -1,44 +0,0 @@ -{%extends "base.html"%} -{%from "flash_messages.html" import flash_messages%} - -{%block title%}Upload R/qtl2 Bundle{%endblock%} - -{%block contents%} -

Upload R/qtl2 Bundle

- -
- - - - {{flash_messages("error-rqtl2")}} - -
- file upload - - -

Provide a valid R/qtl2 zip file here. In - particular, ensure your zip bundle contains exactly one control file and - the corresponding files mentioned in the control file.

-

The control file can be either a YAML or JSON file. ALL other - data files in the zip bundle should be CSV files.

-

See the - - R/qtl2 file format specifications for more details.

-
-
- -
-
- -{%endblock%} -- cgit v1.2.3