2010-10-13 06:59:30 +02:00
|
|
|
{% 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>
|
2011-10-03 22:55:13 +02:00
|
|
|
<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>
|
|
|
|
|
|
|
|
</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>
|
2010-10-13 06:59:30 +02:00
|
|
|
{% 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 }}
|
2011-03-05 01:01:09 +01:00
|
|
|
{% if not transaction.transactionType.needsCheck or transaction.checked %}
|
|
|
|
eingegangen
|
2010-10-13 06:59:30 +02:00
|
|
|
{% else %}
|
2011-10-02 17:58:54 +02:00
|
|
|
<b> aber noch nicht bestätigt </b>
|
2010-10-13 06:59:30 +02:00
|
|
|
{% endif %}
|
2010-10-16 17:33:18 +02:00
|
|
|
{% if forloop.first and transacted %}
|
|
|
|
</b>
|
|
|
|
{% endif %}
|
2010-10-13 06:59:30 +02:00
|
|
|
<br />
|
|
|
|
{% endfor %}
|
2011-10-02 17:58:54 +02:00
|
|
|
</div>
|
2010-10-13 06:59:30 +02:00
|
|
|
{% endblock %}
|