-
Notifications
You must be signed in to change notification settings - Fork 0
/
my_dogs_table.html
44 lines (44 loc) · 1.14 KB
/
my_dogs_table.html
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
<!-- Table presenting the Dog Owner's Dogs. Seperated to different file to improve readability. -->
<table>
<tr>
<th>Dog's Name</th>
<th>Gender</th>
<th>Size</th>
<th>Age</th>
<th>Friendly?</th>
<th>Vaccinated?</th>
</tr>
<!-- Adds a new row in the table for every Dog which belongs to the Dog Owner -->
{% for dog in dogs %}
<tr>
<td>
{{ dog.name }}
</td>
<td>
{{ dog.gender }}
</td>
<td>
{{ dog.size }}
</td>
<td>
{{ dog.age }}
</td>
<td>
{% if dog.friendly == True %}
<span class="marked-true"> Yes </span>
{% elif dog.friendly == False %}
<span class="marked-false"> No </span>
{{ item }}
{% endif %}
</td>
<td>
{% if dog.vaccinated == True %}
<span class="marked-true"> Yes </span>
{% elif dog.vaccinated == False %}
<span class="marked-false"> No </span>
{{ item }}
{% endif %}
</td>
</tr>
{% endfor %}
</table>