{% load i18n %} {% if vouchers %}
{% for voucher in page.object_list %} {% endfor %}
{% trans "Number" %} {% trans "Type" %} {% trans "Value" %} {% trans "Tax" %} {% trans "Start date" %} {% trans "End date" %} {% trans "Effective from" %} {% trans "Active" %} {% trans "Used" %} {% trans "Limit" %} {% trans "Last used date" %}
{% if not voucher.used %} {% endif %} {{ voucher.number }} {{ voucher.get_kind_of_display }} {{ voucher.value }} {% if voucher.tax %} {{ voucher.tax.rate }} {% else %} --- {% endif %} {% if voucher.start_date %} {{ voucher.start_date }} {% else %} --- {% endif %} {% if voucher.end_date %} {{ voucher.end_date }} {% else %} --- {% endif %} {{ voucher.effective_from }} {{ voucher.active }} {{ voucher.used_amount }} {% ifequal voucher.limit 0 %} --- {% else %} {{ voucher.limit }} {% endifequal %} {{ voucher.last_used_date|date:_("DATE_FORMAT") }}
{% else %} {% trans "There are no vouchers for this group yet." %} {% endif %}