summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/templates/modules/ferti.html6
-rw-r--r--app/templates/modules/invoices.html9
-rw-r--r--app/templates/modules/orders.html2
-rw-r--r--app/templates/modules/settings.html2
4 files changed, 9 insertions, 10 deletions
diff --git a/app/templates/modules/ferti.html b/app/templates/modules/ferti.html
index 549059b..7e1e2b3 100644
--- a/app/templates/modules/ferti.html
+++ b/app/templates/modules/ferti.html
@@ -67,10 +67,12 @@ Logger
{% for log in logs %}
<tr>
<td>
- <button>edit</button>
+ <form method="post" action="{{ url_for('common.edit_item', module='ferti', table='FertiLog', pk=log.primary_key) }}">
+ <button>edit</button>
+ </form>
</td>
<td>
- <form method="post" action="{{ url_for('modules.delete_item', pk=log.primary_key, table='Fertilog' ) }}">
+ <form method="post" action="{{ url_for('common.delete_item', module='ferti', table='FertiLog', pk=log.primary_key) }}">
<button>delete</button>
</form>
</td>
diff --git a/app/templates/modules/invoices.html b/app/templates/modules/invoices.html
index 293a45b..9e8f765 100644
--- a/app/templates/modules/invoices.html
+++ b/app/templates/modules/invoices.html
@@ -39,7 +39,7 @@ Invoices
<table>
<thead>
<tr>
- <th><i>Actions</i></th>
+ <th></th>
<th>ID</th>
<th>Created</th>
<th>Alternative Invoice ID</th>
@@ -54,13 +54,10 @@ Invoices
</thead>
<tbody>
{% for invoice in invoices.items %}
- <tr>
+ <tr {% if invoice.archive == True %} style="color: dimgray" {% endif %}>
<td>
- <form method="post" action="{{ url_for('common.delete_item', module='invoices', pk=invoice.primary_key, table='Invoice') }}">
- <button>delete</button>
- </form>
<form method="post" action="{{ url_for('common.edit_item', module='invoices', pk=invoice.primary_key, table='Invoice') }}">
- <button>edit</button>
+ <button>archive</button>
</form>
<form method="get" action="{{ url_for('invoices.preview', pk=invoice.primary_key) }}">
<button>preview</button>
diff --git a/app/templates/modules/orders.html b/app/templates/modules/orders.html
index fd0c13b..658f356 100644
--- a/app/templates/modules/orders.html
+++ b/app/templates/modules/orders.html
@@ -6,7 +6,7 @@ Orders
{% endblock %}
{% block actions %}
-<a href="{{ url_for('add_item', item='order') }}" class="button">Add order</a>
+<a href="{{ url_for('common.add_item', module='orders', table='Order') }}" class="button">Add order</a>
{% endblock %}
{% block content %}
diff --git a/app/templates/modules/settings.html b/app/templates/modules/settings.html
index 0b8f0c0..af0cf98 100644
--- a/app/templates/modules/settings.html
+++ b/app/templates/modules/settings.html
@@ -12,7 +12,7 @@ Settings for user {{ current_user.username }}
<h2>User profile</h2>
-<form method="post" action="{{ url_for('common.edit_item', module='settings', pk=current_user.primary_key, table='Users' ) }}">
+<form method="post" action="{{ url_for('common.edit_item', module='settings', pk=current_user.primary_key, table='User' ) }}">
<button>edit</button>
</form>
Copyright 2019--2024 Marius PETER