2010-10-13 06:59:30 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
2012-01-21 00:21:29 +01:00
|
|
|
{% comment %}
|
|
|
|
# This file is part of k4ever, a point-of-sale system
|
|
|
|
# Contact............ <k4ever@lists.someserver.de>
|
|
|
|
# Website............ http://k4ever.someserver.de/
|
|
|
|
# Bug tracker........ http://k4ever.someserver.de/report
|
|
|
|
#
|
|
|
|
# Licensed under GNU Affero General Public License v3 or later
|
|
|
|
{% endcomment %}
|
|
|
|
|
2010-10-13 06:59:30 +02:00
|
|
|
{% block "content" %}
|
2011-10-31 23:23:38 +01:00
|
|
|
{% if user.get_profile.balance > 0 %}
|
|
|
|
<h3>Dein Kontostand: {{ user.get_profile.balance|floatformat:2 }}</h3>
|
|
|
|
{% else %}
|
|
|
|
<h3><font color="red">Dein Kontostand: {{ user.get_profile.balance|floatformat:2 }}</font></h3>
|
|
|
|
{% endif %}
|
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-16 13:03:11 +02:00
|
|
|
<h2>Konto aufladen</h2>
|
|
|
|
<form method="POST" class="transaction" action="/transaction/">
|
|
|
|
{% csrf_token %}
|
2011-10-25 15:47:10 +02:00
|
|
|
<input type="hidden" name="_formtype" value="normal" />
|
2011-10-16 13:03:11 +02:00
|
|
|
{{ form.as_table }}
|
2011-10-25 15:47:10 +02:00
|
|
|
<input type="submit" class="button" value="Einzahlen" />
|
2011-10-16 13:03:11 +02:00
|
|
|
</form>
|
2011-10-17 17:25:15 +02:00
|
|
|
|
|
|
|
<h3>Kontodaten:</h3>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td>Konto-Inhaber:</td> <td>Alexander Eichner</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Konto-No.::</td> <td>3854536</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>BLZ:</td> <td>20041155</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><b>Betreff:</b></td> <td><b>{{ user.username }}</b></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
2011-10-25 15:47:10 +02:00
|
|
|
<h2>Geld überweisen</h2>
|
|
|
|
{% if transacted %}
|
|
|
|
{% if error %}
|
|
|
|
<font color="red"><h1>Beim überweisen ist ein Fehler aufgetreten..</h1></font>
|
|
|
|
{% else %}
|
|
|
|
<font color="green"><h1>Du hast Geld überwiesen.</h1></font>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
<form method="POST" class="transaction" action="/transaction/">
|
|
|
|
{% csrf_token %}
|
|
|
|
<input type="hidden" name="_formtype" value="virtual" />
|
|
|
|
{{ vform.as_table }}
|
|
|
|
<input type="submit" class="button" value="Überweisen" />
|
|
|
|
</form>
|
|
|
|
|
2011-10-16 13:03:11 +02:00
|
|
|
<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 %}
|
2011-10-02 17:58:54 +02:00
|
|
|
<tr>
|
2011-10-16 13:03:11 +02:00
|
|
|
<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>
|
2011-10-02 17:58:54 +02:00
|
|
|
<td>
|
2011-10-16 13:03:11 +02:00
|
|
|
{% 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 %}
|
2011-10-02 17:58:54 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
2011-10-16 13:03:11 +02:00
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
2011-10-12 02:10:58 +02:00
|
|
|
|
2011-10-16 13:03:11 +02:00
|
|
|
<tfoot>
|
2011-10-12 02:10:58 +02:00
|
|
|
<tr>
|
2011-10-16 13:03:11 +02:00
|
|
|
<th>Datum</th>
|
|
|
|
<th>Uhrzeit</th>
|
|
|
|
<th>Betrag</th>
|
|
|
|
<th>Typ</th>
|
|
|
|
<th>Status</th>
|
2011-10-12 02:10:58 +02:00
|
|
|
</tr>
|
2011-10-16 13:03:11 +02:00
|
|
|
</tfoot>
|
2011-10-12 02:10:58 +02:00
|
|
|
</table>
|
2011-10-28 21:51:28 +02:00
|
|
|
|
|
|
|
<h2>Vergangene virtuelle Transaktionen</h2>
|
|
|
|
<table class="textData">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Datum</th>
|
|
|
|
<th>Uhrzeit</th>
|
|
|
|
<th>Betrag</th>
|
|
|
|
<th>Sender</th>
|
|
|
|
<th>Typ</th>
|
|
|
|
<th>Recipient</th>
|
|
|
|
<th>Comment</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
{% for transaction in vhistory %}
|
|
|
|
<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.user }}</td>
|
|
|
|
<td><script type="text/javascript">
|
|
|
|
if ('{{ user.username }}' == '{{ transaction.user }}'){
|
|
|
|
document.write('<span class="icon cashOut" title="Zahlung abgebucht">Zahlung abgebucht</span>');
|
|
|
|
} else {
|
|
|
|
document.write('<span class="icon cashIn" title="Zahlung eingegangen">Zahlung eingegangen</span>');
|
|
|
|
}
|
|
|
|
</script></td>
|
|
|
|
<td>{{ transaction.recipient }}</td>
|
|
|
|
<td>{{ transaction.comment }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
<tfoot>
|
|
|
|
<tr>
|
|
|
|
<th>Datum</th>
|
|
|
|
<th>Uhrzeit</th>
|
|
|
|
<th>Betrag</th>
|
|
|
|
<th>Sender</th>
|
|
|
|
<th>Typ</th>
|
|
|
|
<th>Recipient</th>
|
|
|
|
<th>Comment</th>
|
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
</table>
|
2010-10-13 06:59:30 +02:00
|
|
|
{% endblock %}
|