2016-05-19 09:19:51 +00:00
|
|
|
{% extends 'shop_base.html' %}
|
2016-05-14 17:20:47 +00:00
|
|
|
{% load bootstrap3 %}
|
2016-05-06 20:33:59 +00:00
|
|
|
|
2016-05-19 09:19:51 +00:00
|
|
|
{% block shop_content %}
|
2016-05-06 20:33:59 +00:00
|
|
|
|
2016-05-14 17:20:47 +00:00
|
|
|
<h2>{{ product.name }}</h2>
|
2016-05-06 20:33:59 +00:00
|
|
|
|
2016-05-30 17:25:34 +00:00
|
|
|
<p>
|
|
|
|
{{ product.description }}
|
|
|
|
</p>
|
|
|
|
|
|
|
|
{% if user.is_authenticated %}
|
2016-05-14 17:20:47 +00:00
|
|
|
<form method="POST">
|
|
|
|
{% csrf_token %}
|
2016-05-15 22:09:00 +00:00
|
|
|
{% bootstrap_form form %}
|
2016-05-14 17:20:47 +00:00
|
|
|
{% bootstrap_button "Add to order" button_type="submit" button_class="btn-primary" %}
|
|
|
|
</form>
|
2016-05-30 17:25:34 +00:00
|
|
|
{% else %}
|
|
|
|
<a href="{% url 'account_signup' %}?next={% url 'shop:product_detail' slug=product.slug %}">
|
|
|
|
Signup</a> or
|
|
|
|
<a href="{% url 'account_login' %}?next={% url 'shop:product_detail' slug=product.slug %}">
|
|
|
|
login</a>
|
|
|
|
to order this product
|
|
|
|
{% endif %}
|
2016-05-06 20:33:59 +00:00
|
|
|
{% endblock %}
|