diff options
Diffstat (limited to 'qc_app/templates/rqtl2/select-probeset-dataset.html')
-rw-r--r-- | qc_app/templates/rqtl2/select-probeset-dataset.html | 45 |
1 files changed, 43 insertions, 2 deletions
diff --git a/qc_app/templates/rqtl2/select-probeset-dataset.html b/qc_app/templates/rqtl2/select-probeset-dataset.html index c0c6401..8b9e5ed 100644 --- a/qc_app/templates/rqtl2/select-probeset-dataset.html +++ b/qc_app/templates/rqtl2/select-probeset-dataset.html @@ -1,5 +1,5 @@ {%extends "base.html"%} -{%from "flash_messages.html" import flash_messages%} +{%from "flash_messages.html" import flash_all_messages%} {%block title%}Upload R/qtl2 Bundle{%endblock%} @@ -8,10 +8,51 @@ <div class="explainer"> <p>The R/qtl2 bundle you uploaded contains (a) "<strong>pheno</strong>" - file(s). This data needs to be organised under a dataset..</p> + file(s). This data needs to be organised under a dataset.</p> <p>This page gives you the ability to do that.</p> </div> +{{flash_all_messages()}} + +<form method="POST" + action="{{url_for('upload.rqtl2.select_probeset_dataset', + species_id=species.SpeciesId, population_id=population.Id)}}" + id="frm:select-probeset-dataset"> + <legend class="heading">Select from existing ProbeSet datasets</legend> + + <input type="hidden" name="species_id" value="{{species.SpeciesId}}" /> + <input type="hidden" name="population_id" + value="{{population.InbredSetId}}" /> + <input type="hidden" name="rqtl2_bundle_file" + value="{{rqtl2_bundle_file}}" /> + <input type="hidden" name="geno-dataset-id" value="{{geno_dataset.Id}}" /> + <input type="hidden" name="probe-study-id" value="{{probe_study.Id}}" /> + + <fieldset> + <label for="select:probe-dataset">Dataset</label> + <select id="select:probe-dataset" + name="probe-dataset-id" + required="required" + {%if datasets | length == 0%}disabled="disabled"{%endif%}> + <option value="">Select a dataset</option> + {%for dataset in datasets%} + <option value={{dataset.Id}}> + {{dataset.Name}} + {%if dataset.FullName%} + -- ({{dataset.FullName}}) + {%endif%} + </option> + {%endfor%} + </select> + </fieldset> + + <fieldset> + <input type="submit" + value="select dataset" + class="btn btn-main form-col-2" /> + </fieldset> +</form> + <p style="color: red; font-weight: bold;">Under Construction</p> {%endblock%} |