You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
939 B
34 lines
939 B
{% extends "cash/base.html" %} |
|
{% load url from future %} |
|
|
|
|
|
{% block content %} |
|
<h1>Kontoauszug</h1> |
|
|
|
{% if transaction_list %} |
|
|
|
{% if detailed %} |
|
<a href="{% url 'transactions' %}" class="btn btn-default">weniger Details</a> |
|
{% else %} |
|
<a href="{% url 'transactions_detailed' %}" class="btn btn-default">mehr Details</a> |
|
{% endif %} |
|
<br/> |
|
|
|
<table> |
|
<thead> |
|
<tr><th>Datum</th><th>Betreff</th><th style="text-align: right;">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 %}
|
|
|