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

{% blocktrans trimmed with card=card.secret %} Gift card: {{ card }} {% endblocktrans %} {% if card.testmode %} {% trans "TEST MODE" %} {% endif %} {% trans "Edit" %}

{% trans "Details" %}

{% trans "Gift card code" %}
{{ card.secret }}
{% trans "Creation date" %}
{{ card.issuance|date:"SHORT_DATETIME_FORMAT" }}
{% trans "Current value" %}
{{ card.value|money:card.currency }}
{% trans "Currency" %}
{{ card.currency }}
{% trans "Expire date" %}
{% if card.expires %}{{ card.expires|date:"SHORT_DATETIME_FORMAT" }}{% else %}–{% endif %}
{% if card.conditions %}
{% trans "Special terms and conditions" context "giftcard" %}
{{ card.conditions }}
{% endif %} {% if card.issued_in %}
{% trans "Issued through sale" %}
{{ card.issued_in.order.full_code }}-{{ card.issued_in.positionid }}
{% endif %} {% if card.owner_ticket %}
{% trans "Owned by ticket holder" %}
{{ card.owner_ticket.order.code }}-{{ card.owner_ticket.positionid }}
{% endif %}

{% trans "Transactions" %}

{% csrf_token %} {% for t in transactions %} {% endfor %}
{% trans "Date" %} {% trans "Information" %} {% trans "Value" %}
{{ t.datetime|date:"SHORT_DATETIME_FORMAT" }} {{ t.display_backend }} {% if t.refund and t.value > 0 and t.value <= card.value %} {% endif %} {% if staff_session and t.info %}
{{ t.info|pprint }}
{% endif %} {% if t.acceptor and t.acceptor != request.organizer %}
{{ t.acceptor }}
{% endif %}
{{ t.value|money:card.currency }}

{% trans "Gift card history" %}

{% include "pretixcontrol/includes/logs.html" with obj=card %}
{% endblock %}