about summary refs log tree commit diff
path: root/uploader/templates/genotypes/study-design.html
blob: 4e11fe73b63314b6a8bd456ebad723c461edf128 (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
{%extends "genotypes/base.html"%}
{%from "flash_messages.html" import flash_all_messages%}

{%block title%}Genotypes: Study Design{%endblock%}
{%block pagetitle%}Genotypes: Study Design{%endblock%}

{%block breadcrumbs%}
{{super()}}
<li class="breadcrumb-item">
  <a href="{{url_for('species.populations.genotypes.view_dataset',
           species_id=species.SpeciesId,
           population_id=population.Id,
           dataset_id=dataset.Id)}}">dataset</a>
</li>
{%endblock%}

{%block contents%}
{{flash_all_messages()}}

<div class="row">
  <h2>Study Design &amp; Genotype Encoding</h2>
</div>

<div class="mb-3">
  <div class="fw-bold mb-2">Genotype symbols in the file</div>
  <p>{{ stats.geno_symbols|join(", ") }}</p>
</div>

<form method="POST"
      action="{{url_for('species.populations.genotypes.study_design',
               species_id=species.SpeciesId,
               population_id=population.Id,
               dataset_id=dataset.Id,
               job_id=job_id)}}">
  <div class="mb-3">
    <label for="txt-description" class="form-label">
      Study/dataset description</label>
    <textarea id="txt-description"
              name="description"
              class="form-control"
              rows="6">{{ values.description }}</textarea>
    <span class="form-text text-muted">
      Collected from the file's comment lines. Edit as needed; this becomes the
      description of your study.
    </span>
  </div>

  {% set study_design = values.study_design %}
  {% set geno_encoding = values.geno_encoding %}
  {% set missing_symbols = values.missing_symbols %}
  {%include "genotypes/study-design-elements.html"%}
  {%include "genotypes/genotype-encoding-elements.html"%}

  <button type="submit" class="btn btn-primary">next</button>
</form>
{%endblock%}