ciclos

ref: balance

src/templates/products.html


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{% extends 'layout.html' %}

{% block body %}
  <section>
    <a href="{{ url_for('products.new') }}">Novo Produto</a>
  </section>

  <table>
    <thead>
      <tr> 
        <th>Título</th> 
      </tr>
    </thead>
    <tbody>
      {% for product in products %}
        <tr>
          <td>{{ product.title }}</td>
        </tr>
      {% endfor %}
    </tbody>
  </table>

{% endblock %}