aboutsummaryrefslogtreecommitdiff
path: root/qc_app/templates/rqtl2/upload-rqtl2-bundle-step-01.html
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-01-16 12:38:30 +0300
committerFrederick Muriuki Muriithi2024-01-16 12:38:30 +0300
commitd809997e8ca76d2441b58693078c6c9698e769bb (patch)
treeddbc9ecd2cbc3c0243e46b2e1e95491afec31a86 /qc_app/templates/rqtl2/upload-rqtl2-bundle-step-01.html
parent7d6deb76edde8dce5414220586c1fde0ddebfc6e (diff)
downloadgn-uploader-d809997e8ca76d2441b58693078c6c9698e769bb.tar.gz
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.
Diffstat (limited to 'qc_app/templates/rqtl2/upload-rqtl2-bundle-step-01.html')
-rw-r--r--qc_app/templates/rqtl2/upload-rqtl2-bundle-step-01.html44
1 files changed, 44 insertions, 0 deletions
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%}
+<h2 class="heading">Upload R/qtl2 Bundle</h2>
+
+<form id="frm-upload-rqtl2-bundle"
+ action="{{url_for('upload.rqtl2.upload_rqtl2_bundle',
+ species_id=species.SpeciesId,
+ population_id=population.InbredSetId)}}"
+ method="POST"
+ enctype="multipart/form-data">
+ <input type="hidden" name="species_id" value="{{species.SpeciesId}}" />
+ <input type="hidden" name="population_id"
+ value="{{population.InbredSetId}}" />
+
+ {{flash_messages("error-rqtl2")}}
+
+ <fieldset>
+ <legend>file upload</legend>
+ <label for="file:rqtl2-bundle">R/qtl2 bundle</label>
+ <input type="file" id="file:rqtl2-bundle" name="rqtl2_bundle"
+ accept="application/zip, .zip"
+ required="required" />
+ <span class="form-input-help"><p>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.</p>
+ <p>The control file can be either a YAML or JSON file. <em>ALL</em> other
+ data files in the zip bundle should be CSV files.</p>
+ <p>See the
+ <a href="https://kbroman.org/qtl2/assets/vignettes/input_files.html"
+ target="_blank">
+ R/qtl2 file format specifications</a> for more details.</p></span>
+ </fieldset>
+ <fieldset>
+ <input type="submit"
+ value="upload R/qtl2 bundle"
+ class="btn btn-main form-col-2" />
+ </fieldset>
+</form>
+
+{%endblock%}