Browse Source

Commit 5.1: Add buttons to Task component.

Frederic G. MARAND 8 years ago
parent
commit
f3d20c055e
1 changed files with 5 additions and 1 deletions
  1. 5 1
      simple-todos.html

+ 5 - 1
simple-todos.html

@@ -25,5 +25,9 @@
 
 <!-- Custom "task" template -->
 <template name="task">
-  <li>{{text}}</li>
+  <li class="{{#if checked}}checked{{/if}}">
+    <button class="delete">&times;</button>
+    <input type="checkbox" checked="{{checked}}" class="toggle-checked" />
+    <span class="text">{{text}}</span>
+  </li>
 </template>