{% extends "base.html" %} {% load bootstrap_form from bootstrap3 %} {% load discounted_price_range price_difference from discount %} {% load i18n %} {% load gross from prices_i18n %} {% load markdown from markdown %} {% load price_range from price_ranges %} {% load static from staticfiles %} {% block title %}{{ product }} — {{ block.super }}{% endblock %} {% block breadcrumb %} {{ block.super }} {% with product.get_first_category as category %} {% if category %}
  • {{ category }}
  • {% endif %} {% endwith %}
  • {{ product }}
  • {% endblock breadcrumb %} {% block outercontent %}

    {{ product }}

    {% if product.is_in_stock %} {% with price_range=product|discounted_price_range:request.discounts undiscounted=product.get_price_range %} {% with discount=undiscounted.min_price|price_difference:price_range.min_price %}

    {% if undiscounted.min_price != price_range.min_price %} {% price_range undiscounted %}
    {% price_range price_range %}
    {% trans "You save" %} {% gross discount %} {% else %} {% price_range price_range %} {% endif %}

    {% endwith %} {% endwith %} {% endif %}
    {% if product.images.first %} {% else %} {% endif %}
    {% if product.is_in_stock %} {% block orderform %}
    {% csrf_token %} {% bootstrap_form form %}
    {% endblock %} {% else %}

    {% trans "This product is currently unavailable." %}

    {% endif %}
    {{ product.description|markdown }}
    {% with images=product.images.all %}
    {% endwith %}
    {% endblock outercontent %}