aboutsummaryrefslogtreecommitdiff
path: root/uploader/templates/populations/list-populations.html
blob: c14a28c82be1877a9a5f7e43c41e872e5971453b (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
{%extends "populations/base.html"%}
{%from "flash_messages.html" import flash_all_messages%}
{%from "species/macro-select-species.html" import select_species_form%}

{%block title%}Populations{%endblock%}

{%block pagetitle%}Populations{%endblock%}

{%block lvl3_breadcrumbs%}
<li {%if activelink=="list-populations"%}
    class="breadcrumb-item active"
    {%else%}
    class="breadcrumb-item"
    {%endif%}>
  <a href="{{url_for('species.populations.list_species_populations',
           species_id=species.SpeciesId)}}">List</a>
</li>
{%endblock%}


{%block contents%}
<div class="row">
  <p>
    The following populations/groups exist for the '{{species.FullName}}'
    species.
  </p>
  <p>
    Click on the population's name to select and continue using the population.
  </p>
</div>

<div class="row">
  <p>
    If the population you need for the species '{{species.FullName}}' does not
    exist, click on the "Create Population" button below to create a new one.
  </p>
  <p>
    <a href="{{url_for('species.populations.create_population',
             species_id=species.SpeciesId)}}"
       title="Create a new population for species '{{species.FullName}}'."
       class="btn btn-danger">
      Create Population
    </a>
  </p>
</div>

<div class="row">
  <table class="table">
    <caption>Populations for {{species.FullName}}</caption>
    <thead>
      <tr>
        <th>Name</th>
        <th>Full Name</th>
        <th>Description</th>
      </tr>
    </thead>

    <tbody>
      {%for population in populations%}
      <tr>
        <td>
          <a href="#{{population.InbredSetId}}"
             title="Population '{{population.FullName}}' for species '{{species.FullName}}'.">
            {{population.Name}}
          </a>
        </td>
        <td>{{population.FullName}}</td>
        <td>{{population.Description}}</td>
      </tr>
      {%else%}
      <tr>
        <td colspan="3">
          <p class="text-danger">
            <span class="glyphicon glyphicon-exclamation-mark"></span>
            There were no populations found for {{species.FullName}}!
          </p>
        </td>
      </tr>
      {%endfor%}
    </tbody>
  </table>
</div>
{%endblock%}

{%block sidebarcontents%}
&hellip; maybe provide species details here, perhaps? &hellip;
{%endblock%}