List of previous transactions: Make items align

This commit is contained in:
theresa 2011-10-12 02:10:58 +02:00
parent 77a8dd73ed
commit 08e9d4590c
1 changed files with 50 additions and 15 deletions

View File

@ -26,20 +26,55 @@
</div> </div>
<div style="width:800px;margin-top:25px"><h1>Vergangene Transaktionen:</h1> <div style="width:800px;margin-top:25px"><h1>Vergangene Transaktionen:</h1>
<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 %} {% for transaction in history %}
<tr>
<td>
{% if forloop.first and transacted %} {% if forloop.first and transacted %}
<b> <b>
{% endif %} {% endif %}
[ {{ transaction.dateTime }} ] {{ transaction.amount|floatformat:2 }} € durch {{ transaction.transactionType }} [ {{ 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 %} {% if not transaction.transactionType.needsCheck or transaction.checked %}
eingegangen eingegangen
{% else %} {% else %}
<b> aber noch nicht best&auml;tigt </b> <b> aber noch nicht best&auml;tigt </b>
{% endif %} {% endif %}
</td>
{% if forloop.first and transacted %} {% if forloop.first and transacted %}
</b> </b>
{% endif %} {% endif %}
<br /> </tr>
{% endfor %} {% endfor %}
</table>
</div> </div>
{% endblock %} {% endblock %}