-
Notifications
You must be signed in to change notification settings - Fork 0
/
walks_table.html
65 lines (65 loc) · 1.54 KB
/
walks_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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!-- The set walks table - Seperated to improve code readability -->
<table>
<tr>
<th>Day</th>
<th>Time</th>
<th>Dog</th>
<th>Size</th>
<th>Gender</th>
<th>Age</th>
<th>Friendly?</th>
<th>Vaccinated?</th>
<th>Owner</th>
<th>Phone</th>
<th>E-Mail</th>
<th></th>
</tr>
<!-- Adds a row for every Walk confirmed by the Dog Walker. -->
{% for walk in walks %}
<tr>
<td>
{{ walk.day }}
</td>
<td>
{{ walk.part }}
</td>
<td>
{{ walk.dog.name }}
</td>
<td>
{{ walk.dog.size }}
</td>
<td>
{{ walk.dog.gender }}
</td>
<td>
{{ walk.dog.age }}
</td>
<td>
{% if walk.dog.friendly == True %}
<span class="marked-true"> Yes </span>
{% elif walk.dog.friendly == False %}
<span class="marked-false"> No </span>
{{ item }}
{% endif %}
</td>
<td>
{% if walk.dog.vaccinated == True %}
<span class="marked-true"> Yes </span>
{% elif walk.dog.vaccinated == False %}
<span class="marked-false"> No </span>
{{ item }}
{% endif %}
</td>
<td>
{{ walk.dog.owner.name }}
</td>
<td>
{{ walk.dog.owner.phone }}
</td>
<td>
{{ walk.dog.owner.email }}
</td>
</tr>
{% endfor %}
</table>