{% extends 'dashboard/layout.html' %} {% load currency_filters %} {% load i18n %} {% block title %} {% blocktrans with name=offer.name %} Offer '{{ name }}' | Offer management {% endblocktrans %} | {{ block.super }} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block header %} {% endblock header %} {% block dashboard_content %}

{% trans "Offer details" %}

{% trans "Name" %}{{ offer.name }}
{% trans "Description" %}{{ offer.description }}
{% trans "Start date" %}{{ offer.start_date }}
{% trans "End date" %}{{ offer.end_date }}
{% trans "Condition" %}{{ offer.condition.description }}
{% trans "Benefit" %}{{ offer.benefit.description }}
{% trans "Date created" %}{{ offer.date_created }}

{% trans "Offer performance" %}

{% trans "Total discount" %}{{ offer.total_discount|currency }}
{% trans "Number of orders" %}{{ offer.num_orders }}

{% trans "Recent orders" %}

{% if not order_discounts %}

{% trans "No orders have been placed that use this offer." %}

{% else %}

{% trans "We show a maximum of 20 orders sorted by recency." %}

{% for discount in order_discounts %} {% with order=discount.order %} {% endwith %} {% endfor %}
{% trans "Order number" %} {% trans "Order total" %} {% trans "Discount" %}
{{ order.number }} {{ order.total_incl_tax|currency }} {{ discount.amount|currency }} {% trans "View" %}
{% endif %}
{% trans "Edit" %} {% trans "or" %} {% trans "Delete" %} {% trans "or" %} {% trans "cancel" %}
{% endblock dashboard_content %}