{% load i18n %} {% load eventurl %} {% load daterange %} {% load safelink %} {% load rich_text %} {% load money %} {% blocktrans asvar s_taxes %}taxes{% endblocktrans %}
{% trans "Product" %} {% if download %} {% trans "Ticket download" %} {% elif not hide_prices %} {% trans "Price per item" %} {% endif %} {% if not hide_prices %} {% trans "Price total" %} {% endif %}
{% for line in cart.positions %}

{% if line.addon_to %} + {% endif %} {{ line.item.name }} {% if line.variation %} – {{ line.variation }} {% endif %}

{% if line.seat or line.voucher or line.subevent or line.used_membership or line.blocked or line.valid_from or line.valid_until %}
{% elif event.settings.show_checkin_number_user and line.checkin_count %}
{% endif %} {% if line.seat %}
{% trans "Seat:" %}
{{ line.seat }}
{% endif %} {% if line.voucher %}
{% trans "Voucher code used:" %}
{{ line.voucher.code }}
{% endif %} {% if line.subevent %}
{% trans "Date:" context "subevent" %}
{{ line.subevent.name }}
{% if event.settings.show_date_to and line.subevent.date_to %} – {% endif %}
{% if line.subevent.location %} {% if not line.addon_to or line.addon_to.subevent_id != line.subevent_id %}
{% trans "Location:" %}
{{ line.subevent.location|linebreaksbr }}
{% endif %} {% endif %} {% endif %} {% if line.used_membership %}
{% trans "Membership:" %}
{{ line.used_membership }}
{% endif %} {% if line.valid_from or line.valid_until %}
{% if line.valid_from and line.valid_until %} {% blocktrans trimmed with datetime_range=line.valid_from|datetimerange:line.valid_until %} Valid {{ datetime_range }} {% endblocktrans %} {% elif line.valid_from %} {% blocktrans trimmed with datetime=line.valid_from|date:"SHORT_DATETIME_FORMAT" %} Valid from {{ datetime }} {% endblocktrans %} {% elif line.valid_until %} {% blocktrans trimmed with datetime=line.valid_until|date:"SHORT_DATETIME_FORMAT" %} Valid until {{ datetime }} {% endblocktrans %} {% endif %}
{% endif %} {% if line.blocked %}
{% trans "This ticket is blocked." %}
{% endif %} {% if event.settings.show_checkin_number_user and line.checkin_count %}
{% trans "Usage:" context "ticket_checkins" %}
{% blocktrans trimmed count count=line.checkin_count %} This ticket has been used once. {% plural %} This ticket has been used {{ count }} times. {% endblocktrans %}
{% endif %} {% if line.seat or line.voucher or line.subevent or line.used_membership or line.blocked or line.valid_from or line.valid_until %}
{% elif event.settings.show_checkin_number_user and line.checkin_count %}
{% endif %} {% if line.issued_gift_cards.exists %}
{% for gc in line.issued_gift_cards.all %}
{% trans "Gift card code" %}
{{ gc.secret }}
{% endfor %}
{% endif %} {% if line.has_questions %}
{% if line.item.ask_attendee_data %} {% if event.settings.attendee_names_asked %}
{% trans "Attendee name" %}
{% if line.attendee_name %}{{ line.attendee_name }}{% else %}{% trans "No attendee name provided" %}{% endif %}
{% endif %} {% if event.settings.attendee_emails_asked and line.attendee_email %}
{% trans "Attendee email" %}
{{ line.attendee_email }}
{% endif %} {% if event.settings.attendee_company_asked and line.company %}
{% trans "Attendee company" %}
{{ line.company }}
{% endif %} {% if event.settings.attendee_addresses_asked %} {% if line.street or line.zipcode or line.city %}
{% trans "Attendee address" %}
{{ line.street|default_if_none:""|linebreaksbr }}
{{ line.zipcode|default_if_none:"" }} {{ line.city|default_if_none:"" }}
{% if line.state %}{{ line.state_for_address }}
{% endif %} {{ line.country.name|default_if_none:"" }}
{% endif %} {% endif %} {% endif %} {% for q in line.questions %}
{{ q.question }}
{% if q.answer %} {% if q.answer.file %} {{ q.answer.file_name }} {% if q.answer.is_image %}
{% trans {% endif %} {% elif q.type == "M" %} {{ q.answer|rich_text_snippet }} {% else %} {{ q.answer|linebreaksbr }} {% endif %} {% else %} {% trans "not answered" %} {% endif %}
{% endfor %} {% for q in line.additional_answers %}
{{ q.question }}
{% if q.answer %}{{ q.answer|linebreaksbr }}{% else %}{% trans "not answered" %}{% endif %}
{% endfor %}
{% endif %}
{% if download %}
{% if line in tickets_with_download %} {% for b in download_buttons %}
{% csrf_token %}
{% endfor %} {% endif %}
{% elif line.addon_to %}
{% if line.count == 1 %} {% else %}{{ line.count }}{% endif %}
{% if not hide_prices %}
{% if event.settings.display_net_prices %} {{ line.net_price|money:event.currency }} {% else %} {{ line.price|money:event.currency }} {% endif %} {% if line.discount and line.line_price_gross != line.price %}
{% if line.price < line.line_price_gross %} {% blocktranslate trimmed with percent=line.discount_percentage|floatformat:0 %} {{ percent }} % Discount {% endblocktranslate %} {% else %} {% trans "Discounted" %} {% endif %}
{% endif %}
{% endif %} {% else %}
{% if editable %}
{% csrf_token %} {% if line.seat or line.count == 1 %} {% else %} {% endif %}
{% endif %} {{ line.count }} {% if editable %}
{% if line.voucher and not line.voucher.seat %} {% endif %} {% csrf_token %} {% if line.variation %} {% else %} {% endif %}
{% endif %}
{% if not hide_prices %}
{% if event.settings.display_net_prices %} {{ line.net_price|money:event.currency }} {% else %} {{ line.price|money:event.currency }} {% endif %} {% if line.discount and line.line_price_gross != line.price %}
{% if line.price < line.line_price_gross %} {% blocktranslate trimmed with percent=line.discount_percentage|floatformat:0 %} {{ percent }} % Discount {% endblocktranslate %} {% else %} {% trans "Discounted" %} {% endif %}
{% endif %}
{% endif %} {% endif %} {% if not hide_prices %}
{% if event.settings.display_net_prices %} {{ line.net_total|money:event.currency }} {% if line.tax_rate and line.total %}
{% blocktrans trimmed with rate=line.tax_rate|floatformat:-2 taxname=line.tax_rule.name|default:s_taxes %} plus {{ rate }}% {{ taxname }} {% endblocktrans %} {% endif %} {% else %} {{ line.total|money:event.currency }} {% if line.tax_rate and line.total %}
{% blocktrans trimmed with rate=line.tax_rate|floatformat:-2 taxname=line.tax_rule.name|default:s_taxes %} incl. {{ rate }}% {{ taxname }} {% endblocktrans %} {% endif %} {% endif %}
{% endif %}
{% for gc in line.owned_gift_cards.all %}
{% trans "Gift card" %} {{ gc.secret }} {% trans "Current value:" %} {{ gc.value|money:gc.currency }} {% trans "Details" %}
{% endfor %} {% endfor %} {% for fee in cart.fees %}
{{ fee.get_fee_type_display }}
{% if not hide_prices %}
{% if event.settings.display_net_prices %} {{ fee.net_value|money:event.currency }} {% if fee.tax_rate %}
{% blocktrans trimmed with rate=fee.tax_rate|floatformat:-2 taxname=fee.tax_rule.name|default:s_taxes %} plus {{ rate }}% {{ taxname }} {% endblocktrans %} {% endif %} {% else %} {{ fee.value|money:event.currency }} {% if fee.tax_rate %}
{% blocktrans trimmed with rate=fee.tax_rate|floatformat:-2 taxname=fee.tax_rule.name|default:s_taxes %} incl. {{ rate }}% {{ taxname }} {% endblocktrans %} {% endif %} {% endif %}
{% endif %}
{% endfor %}
{% if not hide_prices %}
{% if event.settings.display_net_prices and cart.tax_total %}
{% trans "Net total" %}
{{ cart.net_total|money:event.currency }}
{% trans "Taxes" %}
{{ cart.tax_total|money:event.currency }}
{% endif %}
{% trans "Total" %}
{% blocktrans trimmed count num=cart.itemcount %} One product {% plural %} {{ num }} products {% endblocktrans %}
{{ cart.total|money:event.currency }} {% if not event.settings.display_net_prices and cart.tax_total %} {% blocktrans trimmed with tax_sum=cart.tax_total|money:event.currency %} incl. {{ tax_sum }} taxes {% endblocktrans %} {% endif %}
{% endif %}
{% if not cart.is_ordered %}

{% if cart.minutes_left > 0 or cart.seconds_left > 0 %} {% blocktrans trimmed with minutes=cart.minutes_left %} The items in your cart are reserved for you for {{ minutes }} minutes. {% endblocktrans %} {% else %} {% trans "The items in your cart are no longer reserved for you. You can still complete your order as long as they’re available." %} {% endif %}

{% else %}

{% trans "Overview of your ordered products." %}

{% endif %}