26 lines
535 B
HTML
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 %}
|