{% extends 'dashboard/layout.html' %} {% load currency_filters %} {% load i18n %} {% block title %} {% blocktrans with name=voucher.name %}Voucher '{{ name }}'{% endblocktrans %} | Vouchers | {{ block.super }} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block headertext %} {% blocktrans with name=voucher.name %}Voucher '{{ name }}'{% endblocktrans %} {% endblock %} {% block dashboard_content %}

Voucher details

{% trans "Name" %}{{ voucher.name }}
{% trans "Code" %}{{ voucher.code }}
{% trans "Start date" %}{{ voucher.start_date }}
{% trans "End date" %}{{ voucher.end_date }}
{% trans "Usage" %}{{ voucher.usage }}
{% trans "Discount" %}{{ voucher.benefit.description }}

{% trans "Voucher performance" %}

{% trans "Number of basket additions" %}{{ voucher.num_basket_additions }}
{% trans "Number of orders" %}{{ voucher.num_orders }}
{% trans "Total discount" %}{{ voucher.total_discount|currency }}

{% trans "Recent orders" %}

{% if not discounts %}

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

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