Преглед на файлове

Commit 5.1: Add buttons to Task component.

Frederic G. MARAND преди 8 години
родител
ревизия
f3d20c055e
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  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>