-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshow_list.tpl
53 lines (48 loc) · 1.6 KB
/
show_list.tpl
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
<html>
<head>
<title>Todo List 0.004</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"/>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"/>
<style>
.my_class:link, .my_class:visited {
color: teal;
text-decoration: none;
}
.my_class:hover, .my_class:active {
color: purple;
text-decoration: underline;
}
</style>
</head>
<body>
<div class="w3-container w3-teal">
<h2 class="w3-center">Basic Todo List, version 1.4</h2>
</div>
%include("header.tpl", session=session, current="list")
%include("show_list_options.tpl", loc="", old=True)
<table class="w3-table w3-striped">
%for row in rows:
<tr>
<td>
<a href="/update_item/{{row['id']}}?old=true" class="my_class">
<i class="material-icons">edit</i>
</a>
</td>
<td>
{{row['task']}}
</td>
<td>
%if row['status'] == 0:
<a href="/set_status/{{row['id']}}/1?old=true" class="my_class"><i class="material-icons">check_box_outline_blank</i></a>
%else:
<a href="/set_status/{{row['id']}}/0?old=true" class="my_class"><i class="material-icons">check_box</i></a>
%end
</td>
<td>
<a href="/delete_item/{{row['id']}}?old=true" class="my_class"><i class="material-icons">delete</i></a>
</td>
</tr>
%end
</table>
</body>
</html>