{% extends "shop/base.html" %}
{% load url from future %}
{% block body %}

  <h1>Product detail:</h1>
  {{object.get_name}}<br />
  {{object.slug}}<br />
  {{object.short_description}}<br />
  {{object.long_description}}<br />
  {{object.active}}<br />

  {{object.date_added}}<br />
  {{object.last_modified}}<br />

  {{object.unit_price}}<br />

  {% if object.category %}
  {{object.category.name}}
  {% else %}
  (Product is at root category)
  {% endif %}
  <br />

  <form method="post" action="{% url 'cart' %}">{% csrf_token %}
  <input type="hidden" name="add_item_id" value="{{object.pk}}">
  <input type="hidden" name="add_item_quantity" value="1">
  <input type="submit" value="Add to cart">
  </form>
{% endblock %}

