diff --git a/shop/templates/product_detail.html b/shop/templates/product_detail.html index 7e546ab9..0888bbba 100644 --- a/shop/templates/product_detail.html +++ b/shop/templates/product_detail.html @@ -1,54 +1,48 @@ {% extends 'shop_base.html' %} {% load bootstrap3 %} +{% load commonmark %} {% block shop_content %} -
-
-

{{ product.name }}

-
-
-

- {{ product.description }} -

-
+
+

{{ product.name }}

+ {{ product.description|commonmark }} +
+ +
+ +

Add to order

+ + {% if user.is_authenticated %} + + {% if product.is_available %} + +
+ {% csrf_token %} + {% bootstrap_form form %} + {% bootstrap_button "Add to order" button_type="submit" button_class="btn-primary" %} +
+ + {% else %} + +

+ This product is available from + {{ product.available_in.lower|date:"Y-m-d H:i" }} +

+ + {% endif %} + + {% else %} + + Signup or + + login + to order this product + {% endif %} + {% endblock %} + +
- -
- -

Add to order

- - {% if user.is_authenticated %} - - {% if product.is_available %} - -
- {% csrf_token %} - {% bootstrap_form form %} - {% bootstrap_button "Add to order" button_type="submit" button_class="btn-primary" %} -
- - {% else %} - -

- This product is available from - {{ product.available_in.lower|date:"Y-m-d H:i" }} -

- - {% endif %} - - {% else %} - - Signup or - - login - to order this product - {% endif %} - {% endblock %} - -
- -