|
|
|
@ -8,73 +8,51 @@
|
|
|
|
|
<font color="green"><h1>Du hast Geld aufgeladen.</h1></font>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endif %}
|
|
|
|
|
<div style="width:800px"><h1>Konto aufladen</h1>
|
|
|
|
|
<form method="POST" action="/transaction/">
|
|
|
|
|
{% csrf_token %}
|
|
|
|
|
<table width="500px" class="showitem" style="border-width:0px">
|
|
|
|
|
{{ form.as_table }}
|
|
|
|
|
<h2>Konto aufladen</h2>
|
|
|
|
|
<form method="POST" class="transaction" action="/transaction/">
|
|
|
|
|
{% csrf_token %}
|
|
|
|
|
{{ form.as_table }}
|
|
|
|
|
<input type="submit" class="button" value="Einzahlen">
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
<h2>Vergangene Transaktionen</h2>
|
|
|
|
|
<table class="textData">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>Datum</th>
|
|
|
|
|
<th>Uhrzeit</th>
|
|
|
|
|
<th>Betrag</th>
|
|
|
|
|
<th>Typ</th>
|
|
|
|
|
<th>Status</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
|
{% for transaction in history %}
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{{ transaction.dateTime|date:"j. F Y" }}</td>
|
|
|
|
|
<td>{{ transaction.dateTime|date:"H:i" }} Uhr</td>
|
|
|
|
|
<td>{{ transaction.amount|floatformat:2 }}€</td>
|
|
|
|
|
<td>{{ transaction.transactionType }}</td>
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<input type="submit" value="Senden">
|
|
|
|
|
{% if not transaction.transactionType.needsCheck or transaction.checked %}
|
|
|
|
|
<span class="icon approved" title="Zahlung eingegangen">Zahlung eingegangen</span>
|
|
|
|
|
{% else %}
|
|
|
|
|
<span class="icon pending" title="Zahlungsbestätigung steht noch aus">Zahlungsbestätigung steht noch aus</span>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<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 %}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
|
|
{% for transaction in history %}
|
|
|
|
|
<tfoot>
|
|
|
|
|
<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 %}
|
|
|
|
|
<th>Datum</th>
|
|
|
|
|
<th>Uhrzeit</th>
|
|
|
|
|
<th>Betrag</th>
|
|
|
|
|
<th>Typ</th>
|
|
|
|
|
<th>Status</th>
|
|
|
|
|
</tr>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</tfoot>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
{% endblock %}
|
|
|
|
|