aboutsummaryrefslogtreecommitdiff
path: root/uploader/templates/populations/macro-display-population-card.html
blob: 79f7925e9ed984a4a10b32de71315bad38f8bb2b (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
{%from "species/macro-display-species-card.html" import display_species_card%}

{%macro display_population_card(species, population)%}
{{display_species_card(species)}}

<div class="card">
  <div class="card-body">
    <h5 class="card-title">Population</h5>
    <div class="card-text">
      <table class="table">
        <tbody>
          <tr>
            <td>Name</td>
            <td>{{population.Name}}</td>
          </tr>

          <tr>
            <td>Full Name</td>
            <td>{{population.FullName}}</td>
          </tr>

          <tr>
            <td>Code</td>
            <td>{{population.InbredSetCode}}</td>
          </tr>

          <tr>
            <td>Genetic Type</td>
            <td>{{population.GeneticType}}</td>
          </tr>

          <tr>
            <td>Family</td>
            <td>{{population.Family}}</td>
          </tr>

          <tr>
            <td>Description</td>
            <td>{{(population.Description or "")[0:500]}}&hellip;</td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
</div>
{%endmacro%}