{% extends "pretixcontrol/organizers/base.html" %} {% load i18n %} {% load urlreplace %} {% load bootstrap3 %} {% load money %} {% block inner %}

{% trans "Issued gift cards" %}

{% if giftcards|length == 0 and not filter_form.filtered %}

{% blocktrans trimmed %} You haven't issued any gift cards yet. You can either set up a product in an event shop to sell gift cards, or you can manually issue gift cards. {% endblocktrans %}

{% trans "Manually issue a gift card" %}
{% else %}

{% trans "Filter" %}

{% bootstrap_field filter_form.query %}
{% bootstrap_field filter_form.testmode %}
{% bootstrap_field filter_form.state %}

{% trans "Manually issue a gift card" %}

{% for g in giftcards %} {% endfor %}
{% trans "Gift card code" %} {% trans "Creation date" %} {% trans "Expiry date" %} {% trans "Last transaction" %} {% trans "Current value" %}
{{ g.secret }} {% if g.testmode %} {% trans "TEST MODE" %} {% endif %} {% if g.expired %} {% trans "Expired" %} {% endif %} {{ g.issuance|date:"SHORT_DATETIME_FORMAT" }} {% if g.expires %}{{ g.expires|date:"SHORT_DATETIME_FORMAT" }}{% endif %} {% if g.last_tx %}{{ g.last_tx|date:"SHORT_DATETIME_FORMAT" }}{% endif %} {{ g.cached_value|money:g.currency }}
{% include "pretixcontrol/pagination.html" %} {% endif %} {% endblock %}