k4ever/k4ever/transaction/templates/transaction/overview.html

46 lines
1.2 KiB
HTML
Raw Normal View History

{% extends "base.html" %}
{% block "content" %}
2010-10-16 17:33:18 +02:00
{% if transacted %}
2011-03-05 01:46:24 +01:00
{% if error %}
2011-10-02 17:58:54 +02:00
<font color="red"><h1>Es ist beim Aufladen ein Fehler aufgetreten.</h1></font>
2011-03-05 01:46:24 +01:00
{% else %}
2011-10-02 17:58:54 +02:00
<font color="green"><h1>Du hast Geld aufgeladen.</h1></font>
2011-03-05 01:46:24 +01:00
{% endif %}
2010-10-16 17:33:18 +02:00
{% endif %}
2011-10-02 17:58:54 +02:00
<div style="width:800px"><h1>Konto aufladen</h1>
<form method="POST" action="/transaction/">
2011-10-02 17:58:54 +02:00
{% csrf_token %}
<table width="500px" class="showitem" style="border-width:0px">
{{ form.as_table }}
<tr>
<td>
&nbsp;
</td>
<td>
<input type="submit" value="Senden">
</td>
</tr>
</table>
</form>
</div>
2010-10-16 17:33:18 +02:00
2011-10-02 17:58:54 +02:00
<div style="width:800px;margin-top:25px"><h1>Vergangene Transaktionen:</h1>
{% for transaction in history %}
2010-10-16 17:33:18 +02:00
{% if forloop.first and transacted %}
<b>
{% endif %}
2011-10-02 17:58:54 +02:00
[ {{ transaction.dateTime }} ] {{ transaction.amount|floatformat:2 }} € durch {{ transaction.transactionType }}
{% if not transaction.transactionType.needsCheck or transaction.checked %}
eingegangen
{% else %}
2011-10-02 17:58:54 +02:00
<b> aber noch nicht best&auml;tigt </b>
{% endif %}
2010-10-16 17:33:18 +02:00
{% if forloop.first and transacted %}
</b>
{% endif %}
<br />
{% endfor %}
2011-10-02 17:58:54 +02:00
</div>
{% endblock %}