File: show_all.html

package info (click to toggle)
flask-sqlalchemy 3.1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 832 kB
  • sloc: python: 2,909; makefile: 27; sh: 14
file content (28 lines) | stat: -rw-r--r-- 764 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{% extends "layout.html" %}
{% block body %}
  <h2>All Items</h2>
  <form action="{{ url_for("update_done") }}" method=post>
    <table border=1>
      <thead>
        <tr>
          <th>#
          <th>Title
          <th>Date
          <th>Done?
      <tbody>
      {%- for todo in todos %}
      <tr>
        <td>{{ todo.id }}
        <td>{{ todo.title }}
        <td>{{ todo.pub_date.strftime("%Y-%m-%d %H:%M") }}
        <td rowspan=2><input type=checkbox name=done.{{ todo.id }} {{ "checked" if todo.done }}>
      <tr>
        <td colspan=3>{{ todo.text }}</td>
      {%- endfor %}
      <tfoot>
        <tr>
          <td colspan=3><a href="{{ url_for("new") }}">New</a>
          <td><input type=submit value="Save">
    </table>
  </form>
{% endblock %}