You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.2 KiB
47 lines
1.2 KiB
{% extends "base.html" %}
|
|
|
|
{% block "content" %}
|
|
{% if transacted %}
|
|
{% if error %}
|
|
<font color="red"><h1>Es ist beim Aufladen ein Fehler aufgetreten.</h1></font>
|
|
{% else %}
|
|
<font color="green"><h1>Du hast Geld aufgeladen.</h1></font>
|
|
{% endif %}
|
|
{% endif %}
|
|
<div style="width:800px"><h1>Konto aufladen</h1>
|
|
nsactionType:
|
|
Amount<form method="POST" action="/transaction/">
|
|
{% 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>
|
|
|
|
<div style="width:800px;margin-top:25px"><h1>Vergangene Transaktionen:</h1>
|
|
{% for transaction in history %}
|
|
{% if forloop.first and transacted %}
|
|
<b>
|
|
{% endif %}
|
|
[ {{ transaction.dateTime }} ] {{ transaction.amount|floatformat:2 }} € durch {{ transaction.transactionType }}
|
|
{% if not transaction.transactionType.needsCheck or transaction.checked %}
|
|
eingegangen
|
|
{% else %}
|
|
<b> aber noch nicht bestätigt </b>
|
|
{% endif %}
|
|
{% if forloop.first and transacted %}
|
|
</b>
|
|
{% endif %}
|
|
<br />
|
|
{% endfor %}
|
|
</div>
|
|
{% endblock %}
|