Parcourir la source

Commit 8.1: Add hide-completed checkbox to HTML.

Frederic G. MARAND il y a 8 ans
Parent
commit
86d329dd3b
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  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" />