{% extends 'oscar/dashboard/layout.html' %} {% load currency_filters %} {% load i18n %} {% block title %} {% blocktrans with name=offer.name %} {{ name }} | Offers {% endblocktrans %} | {{ block.super }} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block header %}
{% if offer.is_available %} {% trans "Offer currently available" %} {% else %} {% trans "Offer not available due to restrictions!" %} {% endif %} | {% trans "Total cost:" %} {{ offer.total_discount|currency }} | {% trans "Number of orders:" %} {{ offer.num_orders }} | {% trans "Number of uses:" %} {{ offer.num_applications }} |
{% trans "Name" %} | {{ offer.name }} | {% trans "Edit" %} |
---|---|---|
{% trans "Description" %} | {{ offer.description|safe|default:"-" }} | |
{% trans "Incentive" %} | {{ offer.benefit.description|safe }} | {% trans "Edit" %} |
{% trans "Condition" %} | {{ offer.condition.description|safe }} | {% trans "Edit" %} |
{% trans "Restrictions" %} |
{% for restriction in offer.availability_restrictions %}
{% if not restriction.is_satisfied %}
{{ restriction.description }}
{% else %} {{ restriction.description }} {% endif %} {% endfor %} |
{% trans "Edit" %} |
{% trans "Order number" %} | {% trans "Order date" %} | {% trans "Order total" %} | {% trans "Cost" %} | {% for discount in order_discounts %} {% with order=discount.order %}
---|---|---|---|
{{ order.number }} | {{ order.date_placed }} | {{ order.total_incl_tax|currency }} | {{ discount.amount|currency }} |