WebApp Kacheln ergänzt
This commit is contained in:
parent
16c97890e3
commit
01a145946c
3 changed files with 87 additions and 16 deletions
|
|
@ -188,35 +188,52 @@
|
|||
<div class="card">
|
||||
|
||||
<h2>
|
||||
Letzte Transaktionen
|
||||
Transaktionen in dieser Woche
|
||||
</h2>
|
||||
|
||||
{% if transactions %}
|
||||
|
||||
<div class="transaction-container">
|
||||
<table class="transaction-table">
|
||||
<thead>
|
||||
|
||||
{% for t in transactions[-10:]|reverse %}
|
||||
<tr>
|
||||
|
||||
<th>Datum</th>
|
||||
<th>Name</th>
|
||||
<th>Kategorie</th>
|
||||
<th>Betrag</th>
|
||||
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{% for t in transactions|reverse %}
|
||||
|
||||
<tr>
|
||||
|
||||
<td>
|
||||
{{ t.date }}
|
||||
</td>
|
||||
<td>
|
||||
{{ t.date }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ t.applicant_name }}
|
||||
</td>
|
||||
<td>
|
||||
{{ t.applicant_name }}
|
||||
</td>
|
||||
|
||||
<td class="{% if t.amount >= 0 %}amount-positive{% else %}amount-negative{% endif %}">
|
||||
{{ "%.2f"|format(t.amount) }} €
|
||||
</td>
|
||||
<td>
|
||||
{{ t.category }}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<td class="{% if t.amount >= 0 %}amount-positive{% else %}amount-negative{% endif %}">
|
||||
{{ "%.2f"|format(t.amount) }} €
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
{% endfor %}
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
{% else %}
|
||||
|
||||
<p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue