List of previous transactions: Make items align
This commit is contained in:
parent
77a8dd73ed
commit
08e9d4590c
|
@ -26,20 +26,55 @@
|
|||
</div>
|
||||
|
||||
<div style="width:800px;margin-top:25px"><h1>Vergangene Transaktionen:</h1>
|
||||
{% for transaction in history %}
|
||||
{% if forloop.first and transacted %}
|
||||
<b>
|
||||
{% endif %}
|
||||
[ {{ transaction.dateTime }} ] {{ transaction.amount|floatformat:2 }} € durch {{ transaction.transactionType }}
|
||||
{% if not transaction.transactionType.needsCheck or transaction.checked %}
|
||||
eingegangen
|
||||
{% else %}
|
||||
<b> aber noch nicht bestätigt </b>
|
||||
{% endif %}
|
||||
{% if forloop.first and transacted %}
|
||||
</b>
|
||||
{% endif %}
|
||||
<br />
|
||||
{% endfor %}
|
||||
<table class="showitem" style="border-width:0px">
|
||||
{% comment %}
|
||||
<tr>
|
||||
<th>
|
||||
Datum
|
||||
</th>
|
||||
<th>
|
||||
Uhrzeit
|
||||
</th>
|
||||
<th>
|
||||
Betrag
|
||||
</th>
|
||||
<th>
|
||||
Typ
|
||||
</th>
|
||||
<th>
|
||||
Status
|
||||
</th>
|
||||
</tr>
|
||||
{% endcomment %}
|
||||
|
||||
{% for transaction in history %}
|
||||
<tr>
|
||||
<td>
|
||||
{% if forloop.first and transacted %}
|
||||
<b>
|
||||
{% endif %}
|
||||
[ {{ transaction.dateTime|date:"j. M Y" }},
|
||||
</td>
|
||||
<td>
|
||||
{{ transaction.dateTime|date:"H:i" }} Uhr ]
|
||||
<td>
|
||||
<b>{{ transaction.amount|floatformat:2 }}€</b>
|
||||
</td>
|
||||
<td>
|
||||
durch {{ transaction.transactionType }}
|
||||
</td>
|
||||
<td>
|
||||
{% if not transaction.transactionType.needsCheck or transaction.checked %}
|
||||
eingegangen
|
||||
{% else %}
|
||||
<b> aber noch nicht bestätigt </b>
|
||||
{% endif %}
|
||||
</td>
|
||||
{% if forloop.first and transacted %}
|
||||
</b>
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue