-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweekly.html
110 lines (102 loc) · 2.26 KB
/
weekly.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!-- The weekly view template (/weekly) -->
<template name="Weekly">
<div id="title">
<h1>This Week's List</h1>
</div>
<div id="week-container">
<table id="week-table">
<thead>
<tr>
<th class="weekday">Sunday</th>
<th class="weekday">Monday</th>
<th class="weekday">Tuesday</th>
<th class="weekday">Wednesday</th>
<th class="weekday">Thursday</th>
<th class="weekday">Friday</th>
<th class="weekday">Saturday</th>
</tr>
</thead>
<tbody>
<td id="sunday-col" class="week-col">
{{> sunday}}
</td>
<td id="monday-col" class="week-col">
{{> monday}}
</td>
<td id="tuesday-col" class="week-col">
{{> tuesday}}
</td>
<td id="wednesday-col" class="week-col">
{{> wednesday}}
</td>
<td id="thursday-col" class="week-col">
{{> thursday}}
</td>
<td id="friday-col" class="week-col">
{{> friday}}
</td>
<td id="saturday-col" class="week-col">
{{> saturday}}
</td>
</tbody>
</table>
</div>
</template>
<!-- These are the tasks that belong to each day -->
<template name="sunday">
<ul>
{{#each tasks}}
{{> weekentry}}
{{/each}}
</ul>
</template>
<template name="monday">
<ul>
{{#each tasks}}
{{> weekentry}}
{{/each}}
</ul>
</template>
<template name="tuesday">
<ul>
{{#each tasks}}
{{> weekentry}}
{{/each}}
</ul>
</template>
<template name="wednesday">
<ul>
{{#each tasks}}
{{> weekentry}}
{{/each}}
</ul>
</template>
<template name="thursday">
<ul>
{{#each tasks}}
{{> weekentry}}
{{/each}}
</ul>
</template>
<template name="friday">
<ul>
{{#each tasks}}
{{> weekentry}}
{{/each}}
</ul>
</template>
<template name="saturday">
<ul>
{{#each tasks}}
{{> weekentry}}
{{/each}}
</ul>
</template>
<!-- The base template for the days -->
<template name="weekentry">
<li class="{{#if checked}}checked{{/if}}">
<button class="delete">×</button>
<input type="checkbox" checked="{{checked}}" class="toggle-checked">
<span class="text">{{text}}</span>
</li>
</template>