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

{%block title%}Genotypes: Sample Order{%endblock%}
{%block pagetitle%}Genotypes: Sample Order{%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>Sample Order</h2>
</div>

<div class="row">
  <p>
    Review the order of the {{ samples|length }} sample(s) found in the file.
    The population's existing order is kept where possible, with new samples
    appended alphabetically. Reorder by editing the lines below—one sample name
    per line—then continue.
  </p>
</div>

<form method="POST"
      action="{{url_for('species.populations.genotypes.sample_order',
               species_id=species.SpeciesId,
               population_id=population.Id,
               dataset_id=dataset.Id,
               job_id=job_id)}}">
  <div class="mb-3">
    <label for="txt-sample-order" class="form-label">
      Samples ({{ samples|length }})</label>
    <textarea id="txt-sample-order"
              name="sample_order"
              class="form-control"
              rows="20"
              spellcheck="false">{{ samples|join("\n") }}</textarea>
    <span class="form-text text-muted">
      Each sample must appear exactly once.
    </span>
  </div>

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