aboutsummaryrefslogtreecommitdiff
path: root/qc_app/templates/rqtl2/select-probeset-dataset.html
blob: 8b9e5edc22de8a34f6fca4705675e9cb65c13ee2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{%extends "base.html"%}
{%from "flash_messages.html" import flash_all_messages%}

{%block title%}Upload R/qtl2 Bundle{%endblock%}

{%block contents%}
<h2 class="heading">Phenotype(ProbeSet) Dataset</h2>

<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>
  <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%}