parent
0a84601bd7
commit
7dfa64b6e3
1 changed files with 34 additions and 0 deletions
@ -0,0 +1,34 @@ |
|||||||
|
{% extends 'base.html' %} |
||||||
|
{% block content %} |
||||||
|
<div class="col-12 "> |
||||||
|
<div class="cabinet__history"> |
||||||
|
<div class="cabinet__title">История покупок</div> |
||||||
|
<table class="table"> |
||||||
|
<tr> |
||||||
|
<th>Дата</th> |
||||||
|
<th>№ счета</th> |
||||||
|
<th>Наименование</th> |
||||||
|
<th>Кол-во</th> |
||||||
|
<th>Сумма</th> |
||||||
|
</tr> |
||||||
|
{% for bought_item in bought_item_list %} |
||||||
|
<tr> |
||||||
|
<td>{{ bought_item.bought_at }}</td> |
||||||
|
<td>{{ bought_item.id }}</td> |
||||||
|
<td>{{ bought_item.product.name }}</td> |
||||||
|
<td>{{ bought_item.amount }}</td> |
||||||
|
<td>{{ bought_item.total_price }}7570₽</td> |
||||||
|
</tr> |
||||||
|
{% empty %} |
||||||
|
<tr> |
||||||
|
<td>12.06.17</td> |
||||||
|
<td>142251366</td> |
||||||
|
<td>Windows 7 BOX...</td> |
||||||
|
<td>1</td> |
||||||
|
<td>7570₽</td> |
||||||
|
</tr> |
||||||
|
{% endfor %} |
||||||
|
</table> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{% endblock content %} |
||||||
Loading…
Reference in new issue