Skip to content

Instantly share code, notes, and snippets.

@prettydiff
Created August 27, 2015 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prettydiff/972b8c59d898e74e4084 to your computer and use it in GitHub Desktop.
Save prettydiff/972b8c59d898e74e4084 to your computer and use it in GitHub Desktop.
{% extends 'todo_lists/base.html' %}
{% block header_text %}Your to-do list{% endblock %}
{% block form_action %}/lists/{{ list.id }}/add_todo_item{% endblock %}
{% block table %}
<table id="id_todo_list_table">
{% for item in list.todoitem_set.all %}
{ # comment # }
{# comment #}
<tr>
<td>{{ forloop.counter }}: {{ item.text }}</td>
</tr>
{% endfor %}
</table>
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment