summaryrefslogtreecommitdiff
path: root/app/templates/modules/catalog.html
blob: 857c654d85f17308e8d801e13c861dafbb000258 (plain)
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
29
30
31
32
33
34
35
<!-- -*- mode: jinja2; -*- -->

{% extends "base.html" %}
{% block title %}
  Catalog
{% endblock %}

{% block content %}
  <i>insert module content here.</i>

  <p>
    <a href="{{ url_for('add_product') }}" class="button">Add product to your catalog</a>
  </p>

  <table>
    <thead>
      <tr>
	<th>Name</th>
	<th>Price</th>
	<th>Supplier</th>
	<th>Updated</th>
      </tr>
    </thead>
    <tbody>
      {% for product in catalog %}
	<tr>
	  <td>{{ product.name }}</td>
	  <td>{{ product.price }}</td>
	  <td>{{ product.supplier }}</td>
	  <td>{{ product.updated }}</td>
	</tr>
      {% endfor %}
    </tbody>
  </table>
{% endblock %}
Copyright 2019--2024 Marius PETER