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.

41 lines
874 B

{% extends "base.html" %}
{% block "content" %}
{% if history %}
<h1>Fr&uuml;here Eink&auml;ufe von {{ user }}</h1>
<table width="800px" class="details">
<thead>
<tr>
<th>Buchung</th>
<th>Einkauf</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Buchung</th>
<th>Einkauf</th>
</tr>
</tfoot>
<tbody>
{% for order in history.all %}
<tr>
<td>{{ order.dateTime|date:"Y-m-d H:i" }}</td>
<td>
<ul>
{% for item in order.purchase_set.all %}
<li>
<strong>{{ item.buyable.name }}{% if item.isDeposit %} Pfand{% endif %}</strong>
zu {{ item.price|floatformat:2 }} €
</li>
{% endfor %}
</ul>
</td>
</tr>
{% endfor %}
</table>
{% else %}
{{ error }}
Es scheint so, als h&auml;ttest du bisher noch nichts gekauft, {{ user }}.
{% endif %}
{% endblock %}