-
Notifications
You must be signed in to change notification settings - Fork 1
/
simple-todos.html
45 lines (38 loc) · 1.04 KB
/
simple-todos.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
<head>
<title>Todo List</title>
</head>
<body>
<div class="container">
<header>
<h1>Todo List</h1>
<form class="new-user">
<input type="text" name="text" placeholder="Type to add new user" />
<div class="menu">
</div>
</form>
<form class="new-task">
<input type="text" name="text" placeholder="Type to add new tasks" />
<div class="menu">
<select class="catselect" name="category">
{{ #each usernames }}
<option value="{{ name }}">{{ name }}</option>
{{ /each }}
</select>
</div>
</form>
</header>
<ul>
{{#each tasks}}
{{> task}}
{{/each}}
</ul>
</div>
</body>
<!-- replace the existing task template with this code -->
<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}} by {{name}}</span>
</li>
</template>