Просмотр исходного кода

Commit 8.1: Add hide-completed checkbox to HTML.

Frederic G. MARAND 8 лет назад
Родитель
Сommit
86d329dd3b
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      simple-todos.html

+ 5 - 0
simple-todos.html

@@ -9,6 +9,11 @@
   <header>
     <h1>Todo List</h1>
 
+    <label class="hide-completed">
+      <input type="checkbox" checked="{{hideCompleted}}" />
+      Hide completed tasks
+    </label>
+
     <!-- add a form below the h1 -->
     <form class="new-task">
       <input type="text" name="text" placeholder="Type to add new tasks" />