list.html 350 B

12345678910111213
  1. {% extends 'base.html' %}
  2. {% block header_text %}To-Do list{% endblock %}
  3. {% block form_action %}/lists/{{ list.id }}/add_item{% endblock %}
  4. {% block table %}
  5. <table id="id_list_table" class="table">
  6. {% for item in list.item_set.all %}
  7. <tr><td>{{ forloop.counter }}: {{ item.text }}</td></tr>
  8. {% endfor %}
  9. </table>
  10. {% endblock %}