Templates.

Commit
b4dc6ca4cfb4b72d9a765ad2724509a2fd05f857
Author
Marius Peter <marius.peter@tutanota.com>
Author date
Committer
Marius Peter <marius.peter@tutanota.com>
Committer date
Changed files
app/templates/modules/ferti.html
index 549059b1..7e1e2b34 100644..100644
@@ -67,10 +67,12 @@
67 67 {% for log in logs %}
68 68 <tr>
69 69 <td>
70 Removed: <button>edit</button>
70 Added: <form method="post" action="{{ url_for('common.edit_item', module='ferti', table='FertiLog', pk=log.primary_key) }}">
71 Added: <button>edit</button>
72 Added: </form>
71 73 </td>
72 74 <td>
73 Removed: <form method="post" action="{{ url_for('modules.delete_item', pk=log.primary_key, table='Fertilog' ) }}">
75 Added: <form method="post" action="{{ url_for('common.delete_item', module='ferti', table='FertiLog', pk=log.primary_key) }}">
74 76 <button>delete</button>
75 77 </form>
76 78 </td>
app/templates/modules/invoices.html
index 293a45bb..9e8f7655 100644..100644
@@ -39,7 +39,7 @@
39 39 <table>
40 40 <thead>
41 41 <tr>
42 Removed: <th><i>Actions</i></th>
42 Added: <th></th>
43 43 <th>ID</th>
44 44 <th>Created</th>
45 45 <th>Alternative Invoice ID</th>
@@ -54,13 +54,10 @@
54 54 </thead>
55 55 <tbody>
56 56 {% for invoice in invoices.items %}
57 Removed: <tr>
57 Added: <tr {% if invoice.archive == True %} style="color: dimgray" {% endif %}>
58 58 <td>
59 Removed: <form method="post" action="{{ url_for('common.delete_item', module='invoices', pk=invoice.primary_key, table='Invoice') }}">
60 Removed: <button>delete</button>
61 Removed: </form>
62 59 <form method="post" action="{{ url_for('common.edit_item', module='invoices', pk=invoice.primary_key, table='Invoice') }}">
63 Removed: <button>edit</button>
60 Added: <button>archive</button>
64 61 </form>
65 62 <form method="get" action="{{ url_for('invoices.preview', pk=invoice.primary_key) }}">
66 63 <button>preview</button>
app/templates/modules/orders.html
index fd0c13b5..658f3563 100644..100644
@@ -6,7 +6,7 @@
6 6 {% endblock %}
7 7
8 8 {% block actions %}
9 Removed: <a href="{{ url_for('add_item', item='order') }}" class="button">Add order</a>
9 Added: <a href="{{ url_for('common.add_item', module='orders', table='Order') }}" class="button">Add order</a>
10 10 {% endblock %}
11 11
12 12 {% block content %}
app/templates/modules/settings.html
index 0b8f0c09..af0cf989 100644..100644
@@ -12,7 +12,7 @@
12 12
13 13 <h2>User profile</h2>
14 14
15 Removed: <form method="post" action="{{ url_for('common.edit_item', module='settings', pk=current_user.primary_key, table='Users' ) }}">
15 Added: <form method="post" action="{{ url_for('common.edit_item', module='settings', pk=current_user.primary_key, table='User' ) }}">
16 16 <button>edit</button>
17 17 </form>
18 18