-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdaily.html
38 lines (36 loc) · 1.04 KB
/
daily.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
<!-- The homepage template -->
<template name="Daily">
<div id="title">
<h1>Add Tasks</h1>
</div>
<div class="container">
{{#if currentUser}}
{{> inputForm}}
{{else}}
<form class="new-task" autocomplete="off">
<input type="text" name="text" placeholder="Please Sign in" disabled>
</form>
{{/if}}
<ul>
{{#each tasks}}
{{> task}}
{{/each}}
</ul>
</div>
</template>
<!-- Template that displays all your tasks -->
<template name="task">
<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>
<!-- The input form used to input a task -->
<template name="inputForm">
<form class="new-task" autocomplete="off">
<input id="taskText" type="text" name="text" placeholder="Type to add new tasks">
<input type="text" id="datepicker" name="date">
<img id="dateButton" src="/img/datepicker.png">
</form>
</template>