summaryrefslogtreecommitdiff
path: root/app/templates/modules/catalog.html
diff options
context:
space:
mode:
Diffstat (limited to 'app/templates/modules/catalog.html')
-rw-r--r--app/templates/modules/catalog.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/app/templates/modules/catalog.html b/app/templates/modules/catalog.html
new file mode 100644
index 0000000..857c654
--- /dev/null
+++ b/app/templates/modules/catalog.html
@@ -0,0 +1,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