<script src=index.es></script>

<template>
  <link rel=stylesheet href=to-do/index.css>

  <h1>{name}'s &lt;to-do&gt; List</h1>

  <form action=#>
    <header>
      <input required placeholder='Remember the milk&hellip;' maxlength=20>
      <button type=submit>Add</button><!-- implicitly calls `onsubmit` -->
    </header>

    <input id=all name=filter type=radio checked>
    <input id=active name=filter type=radio>
    <input id=completed name=filter type=radio>

    <template name=tasks>
    <article><!--{#} = current index -->
      <input  id={#} onclick=toggle type=checkbox>
      <label for={#}>{task}</label>

      <button onclick=remove>Remove</button>
    </article>
    </template>

    <menu>
      <button onclick=complete>Complete</button>

      <label for=all data-count={all}>All</label>
      <label for=active data-count={active}>Active</label>
      <label for=completed data-count={completed}>Completed</label>

      <button onclick=clear>Clear</button>
    </menu>
  </form>
</template>

<script src=index.es></script>

<template>
  <link rel=stylesheet href=to-do/index.css>

  <h1>{name}'s &lt;to-do&gt; List</h1>

  <form action=#>
    <header>
      <input required placeholder='Remember the milk&hellip;' maxlength=20>
      <button type=submit>Add</button><!-- implicitly calls `onsubmit` -->
    </header>

    <input id=all name=filter type=radio checked>
    <input id=active name=filter type=radio>
    <input id=completed name=filter type=radio>

    <template name=tasks>
    <article><!--{#} = current index -->
      <input  id={#} onclick=toggle type=checkbox>
      <label for={#}>{task}</label>

      <button onclick=remove>Remove</button>
    </article>
    </template>

    <menu>
      <button onclick=complete>Complete</button>

      <label for=all data-count={all}>All</label>
      <label for=active data-count={active}>Active</label>
      <label for=completed data-count={completed}>Done</label>

      <button onclick=clear>Clear</button>
    </menu>
  </form>
</template>

Update Button label to say 'Done'
Update Button label to say 'Done'
