aboutsummaryrefslogtreecommitdiff
path: root/qc_app/templates/rqtl2/create-tissue-success.html
blob: ea056248dad55692c77ffefa1b0790f911d8ca13 (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{%extends "base.html"%}
{%from "flash_messages.html" import flash_all_messages%}

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

{%block contents%}
<h2 class="heading">Select Tissue</h2>

<div class="explainer">
  <p>You have successfully added a new tissue, organ or biological material with
    the following details:</p>
</div>

{{flash_all_messages()}}

<form id="frm-create-tissue-display"
      method="POST"
      action="#">
  <legend class="heading">Create Tissue</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="tissueid" value="{{tissue.Id}}" />

  <fieldset>
    <label>Name</label>
    <label>{{tissue.TissueName}}</label>
  </fieldset>

  <fieldset>
    <label>Short Name</label>
    <label>{{tissue.Short_Name}}</label>
  </fieldset>

  {%if tissue.BIRN_lex_ID%}
  <fieldset>
    <label>BIRN Lex ID</label>
    <label>{{tissue.BIRN_lex_ID}}</label>
  </fieldset>
  {%endif%}

  {%if tissue.BIRN_lex_Name%}
  <fieldset>
    <label>BIRN Lex Name</label>
    <label>{{tissue.BIRN_lex_Name}}</label>
  </fieldset>
  {%endif%}
</form>

<div id="action-buttons"
     style="width:65ch;display:inline-grid;column-gap:5px;">

  <form id="frm-create-tissue-success-continue"
        method="POST"
        action="{{url_for('upload.rqtl2.select_dataset_info',
	        species_id=species.SpeciesId,
	        population_id=population.InbredSetId)}}"
        style="display: inline; width: 100%; grid-column: 1 / 2;
               padding-top: 0.5em; text-align: center; border: none;
               background-color: inherit;">

    <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="tissueid" value="{{tissue.Id}}" />

    <input type="submit"
	   value="continue"
	   class="btn btn-main form-col-2" />
  </form>

  <p style="display:inline;width:100%;grid-column:2/3;text-align:center;
            color:#336699;font-weight:bold;">
    OR
  </p>

  <form id="frm-create-tissue-success-select-existing"
        method="POST"
        action="{{url_for('upload.rqtl2.select_tissue',
	        species_id=species.SpeciesId,
	        population_id=population.InbredSetId)}}"
        style="display: inline; width: 100%; grid-column: 3 / 4;
               padding-top: 0.5em; text-align: center; border: none;
               background-color: inherit;">

    <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="submit"
	   value="select from existing tissues"
	   class="btn btn-main form-col-2" />
  </form>

</div>

{%endblock%}