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>
{% for transaction in history %} <table class="showitem" style="border-width:0px">
{% if forloop.first and transacted %} {% comment %}
<b> <tr>
{% endif %} <th>
[ {{ transaction.dateTime }} ] {{ transaction.amount|floatformat:2 }} € durch {{ transaction.transactionType }} Datum
{% if not transaction.transactionType.needsCheck or transaction.checked %} </th>
eingegangen <th>
{% else %} Uhrzeit
<b> aber noch nicht best&auml;tigt </b> </th>
{% endif %} <th>
{% if forloop.first and transacted %} Betrag
</b> </th>
{% endif %} <th>
<br /> Typ
{% endfor %} </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&auml;tigt </b>
{% endif %}
</td>
{% if forloop.first and transacted %}
</b>
{% endif %}
</tr>
{% endfor %}
</table>
</div> </div>
{% endblock %} {% endblock %}