{% extends 'oscar/dashboard/layout.html' %} {% load currency_filters %} {% load sorting_tags %} {% load i18n %} {% block title %} {% trans "Offers" %} | {{ block.super }} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block header %} {% endblock header %} {% block dashboard_content %}
{% include 'oscar/dashboard/partials/form_fields_inline.html' with form=form %}
{% csrf_token %} {% if offers %} {% for offer in offers %} {% endfor %} {% else %} {% endif %}
{{ queryset_description }} {% if is_filtered %} {% trans "Reset" %} {% endif %}
{% anchor 'name' _('Offer name') %} {% anchor 'start_datetime' _('Start date') %} {% anchor 'end_datetime' _('End date') %} {% trans "Priority" %} {% trans "Incentive" %} {% trans "Condition" %} {% trans "Is available?" %} {% trans "Restrictions" %} {% anchor 'num_applications' _('Uses') %} {% anchor 'total_discount' _('Cost') %}
{{ offer.name }} {{ offer.start_datetime|default:"-" }} {{ offer.end_datetime|default:"-" }} {{ offer.priority }} {{ offer.benefit.description|safe }} {{ offer.condition.description|safe }} {% if offer.is_available %} {% trans "Yes" %} {% else %} {% trans "No" %} {% endif %} {% for restriction in offer.availability_restrictions %} {% if not restriction.is_satisfied %} {% else %} {{ restriction.description }}
{% endif %} {% endfor %}
{{ offer.num_applications }} {{ offer.total_discount|currency }}
{% trans "No offers found." %}
{% include "oscar/dashboard/partials/pagination.html" %}
{% endblock dashboard_content %}