{% extends "pretixpresale/organizers/customer_base.html" %} {% load money %} {% load i18n %} {% load icon %} {% load eventurl %} {% load textbubble %} {% block title %}{% trans "Gift cards" %}{% endblock %} {% block inner %}

{% icon "gift" %} {% trans "Gift cards" %} ({{ page_obj.paginator.count }})

{% if gift_cards %}
{% for gc in gift_cards %}

{% icon "gift" %} {{ gc }}

{% if gc.issuance %}

{% icon "calendar" %} {% blocktrans trimmed with date=gc.issuance|date:"SHORT_DATE_FORMAT" %} Issued on {{ date }} {% endblocktrans %}

{% endif %}

{% if gc.expired %} {% icon "clock-o" %} {% if gc.expires %} {% blocktrans trimmed with date=gc.expires|date:"SHORT_DATETIME_FORMAT" %} Expired since {{ date }} {% endblocktrans %} {% else %} {% trans "Expired" %} {% endif %} {% elif gc.expires %} {% icon "check" %} {% blocktrans trimmed with date=gc.expires|date:"SHORT_DATETIME_FORMAT" %} Valid until {{ date }} {% endblocktrans %} {% else %} {% icon "check" %} {% trans "Valid" %} {% endif %}

{% if gc.testmode %}

{% textbubble "warning" %} {% trans "TEST MODE" %} {% endtextbubble %}

{% endif %}
{% blocktrans trimmed with value=gc.value|money:gc.currency %} Remaining value: {% endblocktrans %}

{{ value }}

{% endfor %}
{% else %}

{% trans "You don’t have any gift cards in your account currently." %} {% trans "Currently, only gift cards resulting from refunds show up here, any purchased gift cards show up under the orders tab." %}

{% endif %}
{% include "pretixcontrol/pagination.html" %} {% endblock %}