[7323fc]: / templates / table.html

Download this file

32 lines (32 with data), 919 Bytes

 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
<h4>{{ n }} Records Found</h4>
<table class="table table-bordered table-responsive">
<tr class="table-dark">
<th>Code System</th>
<th>Gene Code</th>
<th>Chromosome</th>
<th>Symbol</th>
<th>Description</th>
<th>Type of Gene</th>
</tr>
{% for i in range(0,n) %}
{% if data[3][i][3] == word %}
<tr class=" table-success border-success">
<td>{{ data[3][i][0] }}</td>
<td>{{ data[3][i][1] }}</td>
<td>{{ data[3][i][2] }}</td>
<td>{{ data[3][i][3] }}</td>
<td>{{ data[3][i][4] }}</td>
<td>{{ data[3][i][5] }}</td>
</tr>
{% else %}
<tr class="table-primary">
<td>{{ data[3][i][0] }}</td>
<td>{{ data[3][i][1] }}</td>
<td>{{ data[3][i][2] }}</td>
<td>{{ data[3][i][3] }}</td>
<td>{{ data[3][i][4] }}</td>
<td>{{ data[3][i][5] }}</td>
</tr>
{% endif %}
{% endfor %}
</table>