Frederic
11 years ago
3 changed files with 53 additions and 0 deletions
@ -0,0 +1,33 @@
@@ -0,0 +1,33 @@
|
||||
{% extends "cash/base.html" %} |
||||
{% load url from future %} |
||||
|
||||
|
||||
{% block content %} |
||||
<h1>Kontoauszug</h1> |
||||
|
||||
{% if transaction_list %} |
||||
|
||||
{% if detailed %} |
||||
<a href="{% url 'transactions' %}" class="actionlink">weniger Details</a> |
||||
{% else %} |
||||
<a href="{% url 'transactions_detailed' %}" class="actionlink">mehr Details</a> |
||||
{% endif %} |
||||
|
||||
<table> |
||||
<thead> |
||||
<tr><th>Datum</th><th>Betreff</th><th>Betrag</th></tr> |
||||
</thead> |
||||
{% for t in transaction_list %} |
||||
<tr> |
||||
<td>{% if detailed %}{{ t.timestamp|date:'d.m.Y H:i:s' }}{% else %}{{ t.timestamp|date:'d.m.Y'}}{% endif %}</td> |
||||
<td>{{ t.subject }}{% if detailed %}<br/><i>{{ t.description }}</i>{% endif %}</td> |
||||
<td style="text-align: right; color: {% if t.amount < 0 %}red{% else %}green{% endif %}">{{ t.amount|floatformat:2 }} €</td> |
||||
</tr> |
||||
{% endfor %} |
||||
</table> |
||||
|
||||
{% else %} |
||||
Es wurden noch keine Transaktionen durchgeführt. |
||||
{% endif %} |
||||
|
||||
{% endblock %} |
Loading…
Reference in new issue