diff --git a/django/didgeridoo/webshop/templates/webshop/cart.html b/django/didgeridoo/webshop/templates/webshop/cart.html index bf1f238..7dd5127 100644 --- a/django/didgeridoo/webshop/templates/webshop/cart.html +++ b/django/didgeridoo/webshop/templates/webshop/cart.html @@ -2,8 +2,29 @@ {% block section_title %}
{{ article.description }}
-in Stock: {{ article.stock }}
-Amount you whant: {{ article.amount }}
-Price: {{ article.price_in_chf }} {{ currency_name }}
+ {% if articles_list %} +ID | +NAME | +STOCK | +PRICE | +
---|---|---|---|
{{ article.id }} | ++ + {{ article.article.name }} + | +{{ article.article.stock }} | +{{ article.article.price_in_chf }} {{ currency_name }} | +
+ There are currently no articles in your cart. +
+ {% endif %} {% endblock %} diff --git a/django/didgeridoo/webshop/views.py b/django/didgeridoo/webshop/views.py index 32d5446..77d984d 100644 --- a/django/didgeridoo/webshop/views.py +++ b/django/didgeridoo/webshop/views.py @@ -258,7 +258,7 @@ def cart(request): article.price_in_chf = rate.exchange(currency, article.price_in_chf) return render(request, 'webshop/cart.html', - {'article': article, + {'articles_list': articles_list, 'currencies_form': currencies_form, 'article_view': article_view, 'currency_name': currency_name,