2018-02-04 18:32:54 +01:00
|
|
|
{% extends "webshop/base.html" %}
|
|
|
|
{% block section_title %}<h1>Cart</h1>{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<h3>List of Items in your Shopping Cart:</h3>
|
2018-02-04 19:58:17 +01:00
|
|
|
{% if articles_list %}
|
|
|
|
<table class="table">
|
|
|
|
<tr class="table_header">
|
2018-02-11 18:19:21 +01:00
|
|
|
<th scope="col">POS.</th>
|
|
|
|
<th scope="col">ART#</th>
|
2018-02-04 19:58:17 +01:00
|
|
|
<th scope="col">NAME</th>
|
|
|
|
<th scope="col">STOCK</th>
|
2018-02-04 20:18:49 +01:00
|
|
|
<th scope="col">AMOUNT</th>
|
2018-02-11 18:19:21 +01:00
|
|
|
<th scope="col">PRICE p.pce.</th>
|
2018-02-11 22:37:27 +01:00
|
|
|
<th scope="col">POSITION PRICE</th>
|
2018-02-04 19:58:17 +01:00
|
|
|
</tr>
|
2018-02-13 20:45:28 +01:00
|
|
|
{% for position in cart_position_list %}
|
2018-02-04 19:58:17 +01:00
|
|
|
<tr class="table_content">
|
2018-02-13 20:45:28 +01:00
|
|
|
<td scope="col">{{ position.id }}</td>
|
|
|
|
<td scope="col">{{ position.article.id }}</td>
|
2018-02-04 19:58:17 +01:00
|
|
|
<td scope="col">
|
2018-02-13 20:45:28 +01:00
|
|
|
<a href="{% url 'details' position.article.id %}">
|
|
|
|
{{ position.article.name }}
|
2018-02-04 21:48:29 +01:00
|
|
|
</a>
|
|
|
|
</td>
|
2018-02-13 20:45:28 +01:00
|
|
|
<td scope="col">{{ position.article.stock }}</td>
|
|
|
|
<td scope="col">{{ position.amount }}</td>
|
2018-02-04 21:48:29 +01:00
|
|
|
<td scope="col">
|
2018-02-13 20:45:28 +01:00
|
|
|
{{ position.article.price_in_chf }}
|
2018-02-04 21:48:29 +01:00
|
|
|
{{ currency_name }}
|
|
|
|
</td>
|
2018-02-13 20:45:28 +01:00
|
|
|
<td scope="col">{{ position.position_price }} {{ currency_name }}</td>
|
2018-02-04 19:58:17 +01:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
2018-02-04 21:48:29 +01:00
|
|
|
<tr>
|
2018-02-11 18:19:21 +01:00
|
|
|
<td scope="col" colspan="7" class="text-right">
|
2018-02-13 20:00:15 +01:00
|
|
|
Total: {{ total }} {{ currency_name }}
|
2018-02-04 21:48:29 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
2018-02-04 19:58:17 +01:00
|
|
|
</table>
|
|
|
|
{% else %}
|
|
|
|
<p class="alert">
|
|
|
|
There are currently no articles in your cart.
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
2018-02-04 18:32:54 +01:00
|
|
|
{% endblock %}
|