summaryrefslogtreecommitdiff
path: root/app/templates/modules/invoices.html
diff options
context:
space:
mode:
Diffstat (limited to 'app/templates/modules/invoices.html')
-rw-r--r--app/templates/modules/invoices.html44
1 files changed, 44 insertions, 0 deletions
diff --git a/app/templates/modules/invoices.html b/app/templates/modules/invoices.html
new file mode 100644
index 0000000..76fe267
--- /dev/null
+++ b/app/templates/modules/invoices.html
@@ -0,0 +1,44 @@
+{# -*- mode: jinja2; -*- #}
+
+{% extends "base.html" %}
+{% block title %}
+ Products
+{% endblock %}
+
+{% block content %}
+
+ <div id="actions">
+ <a href="{{ url_for('add_invoice') }}" class="button">New invoice</a>
+ </div>
+
+ <i>Track your invoices and create new ones here.</i>
+
+ <table>
+ <thead>
+ <tr>
+ <th colspan=2><i>Actions</i></th>
+ <th>Name</th>
+ <th>Price (net)</th>
+ <th>Price (gross)</th>
+ <th>Updated</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for invoice in invoices %}
+ <tr>
+ <td><button>edit</button></td>
+ <td><button formaction="/">delete</button></td>
+ <td>{{ product.name }}</td>
+ <td>{{ product.price_net }}</td>
+ <td>{{ product.price_gross }}</td>
+ {% if product.date_time_updated %}
+ <td>{{ product.date_time_updated }}</td>
+ {% else %}
+ <td>{{ product.date_time_created }}</td>
+ {% endif %}
+
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+{% endblock %}
Copyright 2019--2024 Marius PETER