summaryrefslogtreecommitdiff
path: root/app/templates/modules/catalog.html
diff options
context:
space:
mode:
authorMarius Peter <marius.peter@tutanota.com>2022-04-22 13:24:41 +0200
committerMarius Peter <marius.peter@tutanota.com>2022-04-22 13:24:41 +0200
commit9770cf8345d47cb086bd386c0d5c0fca165a6d11 (patch)
tree90addd86fdc9c1516cdab28b955e6054212bac83 /app/templates/modules/catalog.html
First commit! :fire:
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