2017-12-19 20:21:46 +01:00
|
|
|
{% extends "webshop/base.html" %}
|
|
|
|
{% block section_title %}{{ article.name }}{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<h3>Description</h3>
|
|
|
|
<p>{{ article.description }}</p>
|
|
|
|
<p><b>Stock:</b> {{ article.stock }}</p>
|
2018-01-28 21:26:36 +01:00
|
|
|
<p><b>Status:</b> {{ article.status }}</p>
|
|
|
|
<p><b>Price:</b> {{ article.price_in_chf }} {{ currency_name }}</p>
|
2018-02-04 18:32:54 +01:00
|
|
|
{% if user.is_authenticated %}
|
2018-02-18 18:33:14 +01:00
|
|
|
<p>
|
2018-02-04 18:32:54 +01:00
|
|
|
<form id="amount" action="" method="POST" novalidate>
|
|
|
|
{{ amount.as_p }}
|
|
|
|
<input type="submit" value="Add to Cart" />
|
|
|
|
{% csrf_token %}
|
|
|
|
</form>
|
2018-02-18 18:33:14 +01:00
|
|
|
</p>
|
2018-02-04 18:32:54 +01:00
|
|
|
{% else %}
|
|
|
|
<p> please login to fill your basket...</p>
|
|
|
|
{% endif %}
|
2017-12-31 15:09:36 +01:00
|
|
|
{% for picture in picture_list %}
|
|
|
|
<p><img src="{{ MEDIA_URL }}{{ picture.image }}" width="200" /></p>
|
|
|
|
{% endfor %}
|
2017-12-19 20:21:46 +01:00
|
|
|
{% endblock %}
|