{% extends 'oscar/dashboard/vouchers/voucher_list.html' %} {% load currency_filters %} {% load sorting_tags %} {% load i18n %} {% block table_head %} {% trans "Name" %} {% trans "Code" %} {% trans "Status" %} {% trans "Usage is Limited to User Groups" %} {% trans "Desktop Image" %} {% trans "Mobile Image" %} {% trans "Num child codes" %} {% trans "Offer Group" %} {% trans "Priority" %} {% anchor 'num_basket_additions' _("Num baskets") %} {% anchor 'num_orders' _("Num orders") %} {% anchor 'date_created' _("Date created") %} {% endblock table_head %} {% block table_row %} {{ voucher.name }} {{ voucher.code }} {% if voucher.is_active %} {% trans "Active" %} {% else %} {% trans "Inactive" %} {% endif %} {% if voucher.limit_usage_by_group %} {% for group in voucher.groups.all %} {{ group.name }} {% endfor %} {% else %} {% trans "No" %} {% endif %} {% if voucher.offers.first %} {% include "oscar/dashboard/vouchers/voucher_thumbnail.html" with record=voucher.offers.first.desktop_image %} {% endif %} {% if voucher.offers.first %} {% include "oscar/dashboard/vouchers/voucher_thumbnail.html" with record=voucher.offers.first.mobile_image %} {% endif %} {{ voucher.children.count | default:'-' }} {{ voucher.offer_group | default:'-' }} {{ voucher.priority }} {{ voucher.num_basket_additions }} {{ voucher.num_orders }} {{ voucher.date_created }} {% block row_actions %}
{% endblock row_actions %} {% endblock table_row %}