{% extends 'oscar/dashboard/layout.html' %} {% load currency_filters %} {% load sorting_tags %} {% load i18n %} {% load widget_tweaks %} {% block title %} {% trans "Child Codes" %} | {% trans "Vouchers" %} | {{ block.super }} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block headertext %}{% trans "Child Codes" %}{% endblock %} {% block dashboard_content %} {% block page_head %}

{% trans "Search" %}

{{ form.code.label_tag }} {% render_field form.code class+='form-control' %} {% for error in form.code.errors %}
  • {{ error }}
{% endfor %}
{% trans "Reset" %}
{% if search_filters %}
{% for filter in search_filters %} {{ filter }} {% endfor %}
{% endif %}
{% endblock page_head %} {% block voucher_table %}
{% csrf_token %} {% if vouchers %} {% block table_head %} {% endblock table_head %} {% for voucher in vouchers %} {% block table_row %} {% endblock table_row %} {% endfor %} {% else %} {% endif %}

{% if search_filters %} {% trans "Search Results" %} {% else %} {% trans "Child Codes" %} {% endif %}

{% trans "Code" %} {% trans "Status" %} {% trans "Num offers" %} {% anchor 'num_basket_additions' _("Num baskets") %} {% anchor 'num_orders' _("Num orders") %} {% anchor 'date_created' _("Date created") %}
{{ voucher.code }} {% if voucher.is_active %} {% trans "Active" %} {% else %} {% trans "Inactive" %} {% endif %} {{ voucher.offers.count }} {{ voucher.num_basket_additions }} {{ voucher.num_orders }} {{ voucher.date_created }}
{% trans "No child codes found." %}
{% endblock voucher_table %} {% include "oscar/dashboard/partials/pagination.html" %} {% endblock dashboard_content %}