about summary refs log tree commit diff
path: root/uploader/templates/phenotypes/macro-display-pheno-dataset-card.html
blob: 641421d72f03eb31b9873d966f8a2a1d4fd64c09 (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
{%from "populations/macro-display-population-card.html" import display_population_card, display_sui_population_card%}

{%macro display_pheno_dataset_card(species, population, dataset)%}
{{display_population_card(species, population)}}

<div class="card">
  <div class="card-body">
    <h5 class="card-title">Phenotypes' Dataset</h5>
    <div class="card-text">
      <table class="table">
        <tbody>
          <tr>
            <td>Name</td>
            <td>{{dataset.Name}}</td>
          </tr>

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

          <tr>
            <td>Short Name</td>
            <td>{{dataset.ShortName}}</td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
</div>
{%endmacro%}

{%macro display_sui_pheno_dataset_card(species, population, dataset)%}
{{display_sui_population_card(species, population)}}

<div class="row">
  <table class="table">
    <caption>Current dataset</caption>
    <tbody>
      <tr>
        <th>Name</th>
        <td>{{dataset.Name}}</td>
      </tr>

      <tr>
        <th>Full Name</th>
        <td>{{dataset.FullName}}</td>
      </tr>

      <tr>
        <th>Short Name</th>
        <td>{{dataset.ShortName}}</td>
      </tr>
    </tbody>
  </table>
</div>
{%endmacro%}