{% extends 'oscar/dashboard/offers/offer_detail.html' %} {% load currency_filters %} {% load i18n %} {% block dashboard_content %}
{% 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 "Date created:" %} {{ offer.date_created }}

{% trans "Offer details" %}

{% trans "Name" %} {{ offer.name }} {% trans "Edit" %}
{% trans "Short Name" %} {{ offer.short_name }}
{% trans "Description" %} {{ offer.description|safe|default:"-" }}
{% trans "Offer Group" %} {{ offer.offer_group }}
{% trans "Priority" %} {{ offer.priority }}
{% 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 "Orders that used this offer" %}

{% include 'oscar/dashboard/partials/form_fields.html' with form=form %} {% if is_filtered %} {% trans "Reset" %} {% endif %}
{% if is_filtered %}

{% trans "Orders matching search" %}

{% else %}

{% trans "All orders" %}

{% endif %}
{% if not order_discounts %} {% else %} {% for discount in order_discounts %} {% with order=discount.order %} {% endwith %} {% endfor %} {% endif %}
{% trans "No orders found." %}
{% trans "Order number" %} {% trans "Order status" %} {% trans "Order date" %} {% trans "Order total" %} {% trans "Cost" %}
{{ order.number }} {{ order.status }} {{ order.date_placed }} {{ order.total_incl_tax|currency }} {{ discount.amount|currency }}
{% include 'oscar/dashboard/partials/pagination.html' %} {% endblock dashboard_content %}