ref: legacy
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 24 25 26 |
{% extends 'layout.html' %} {% block body %} <section class="mb-5"> <a href="{{ url_for('products.new') }}">Novo Produto</a> </section> {% for product in products %} <div class="p-5 mb-5 box"> <div class="box box-header mb-5"> <h2>{{ product.title }}</h2> </div> <div> <small>{{ product.group.name }} - {{ product.category.name }}</small> </div> <em class="white-space-pre">{{ product.description }}</em> <div> <strong> {{ product.price | as_currency }} </strong> </div> <div> <a href="{{ url_for('products.balance', id = product.id) }}">Editar Saldo</a> </div> </div> {% endfor %} {% endblock %} |