Debian Codegraph @

examples/todo/templates/show_all.html

raw
1 {% extends "layout.html" %}
2 {% block body %}
3 <h2>All Items</h2>
4 <form action="{{ url_for("update_done") }}" method=post>
5 <table border=1>
6 <thead>
7 <tr>
8 <th>#
9 <th>Title
10 <th>Date
11 <th>Done?
12 <tbody>
13 {%- for todo in todos %}
14 <tr>
15 <td>{{ todo.id }}
16 <td>{{ todo.title }}
17 <td>{{ todo.pub_date.strftime("%Y-%m-%d %H:%M") }}
18 <td rowspan=2><input type=checkbox name=done.{{ todo.id }} {{ "checked" if todo.done }}>
19 <tr>
20 <td colspan=3>{{ todo.text }}</td>
21 {%- endfor %}
22 <tfoot>
23 <tr>
24 <td colspan=3><a href="{{ url_for("new") }}">New</a>
25 <td><input type=submit value="Save">
26 </table>
27 </form>
28 {% endblock %}