comet/comet/account/templates/account/balance.html
2018-12-14 19:52:18 +01:00

26 lines
535 B
HTML

{% extends 'account/base.html' %}
{% block content %}
<h2>{{ account.firstname}} {{ account.lastname }}</h2>
<a class="button" href="{% url 'reset' account.pk %}">Remettre le solde à 0</a>
<a class="button" href="{% url 'refill' account.pk %}">Recharger le compte</a>
<br/>
<br/>
<h3>Ventes</h3>
<table>
<tr>
<th>Date</th>
<th>Titre</th>
<th>Prix</th>
</tr>
{% for sale in sales %}
<tr>
<td>{{sale.date|date:'d/m/Y'}}</td>
<td>{{sale.title}}</td>
<td>{{sale.price}}</td>
</tr>
{% endfor %}
</table>
{% endblock %}