{% extends 'oscar/dashboard/offers/offer_list.html' %} {% load currency_filters %} {% load sorting_tags %} {% load i18n %} {% 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' _('Name') %} {% trans "Short Name" %} {% anchor 'start_date' _('Start Date') %} {% anchor 'end_date' _('End Date') %} {% trans "Incentive" %} {% trans "Condition" %} {% trans "Is Available?" %} {% trans "Restrictions" %} {% trans "Offer Group" %} {% trans "Priority" %} {% anchor 'num_applications' _('Uses') %} {% anchor 'total_discount' _('Cost') %}
{{ offer.name }} {{ offer.short_name }} {{ offer.start_date|default:"-" }} {{ offer.end_date|default:"-" }} {{ 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.offer_group }} {{ offer.priority }} {{ offer.num_applications }} {{ offer.total_discount|currency }}
{% trans "No offers found." %}
{% include "oscar/dashboard/partials/pagination.html" %}
{% endblock dashboard_content %}