{% extends "pretixcontrol/items/base.html" %} {% load i18n %} {% load bootstrap3 %} {% load eventsignal %} {% load eventurl %} {% block title %}{% trans "Voucher" %}{% endblock %} {% block inside %}

{% trans "Voucher" %}

{% if voucher.redeemed %}
{% trans "This voucher already has been used. It is not recommended to modify it." %}
{% endif %} {% if redeemed_in_carts %}
{% blocktrans trimmed with number=redeemed_in_carts %} This voucher is currently used in {{ number }} cart sessions and there might not be free to use until the cart sessions expire. {% endblocktrans %}

{% trans "Remove cart positions" %}

{% endif %}
{% csrf_token %} {% bootstrap_form_errors form %}
{% trans "Voucher details" %} {% bootstrap_field form.code layout="control" %} {% if voucher.pk %}
{% endif %} {% bootstrap_field form.max_usages layout="control" %} {% bootstrap_field form.valid_until layout="control" %} {% bootstrap_field form.itemvar layout="control" %}
{% bootstrap_field form.price_mode show_label=False form_group_class="" %}
{% bootstrap_field form.value show_label=False form_group_class="" %}
{% blocktrans trimmed %} If you choose "any product" for a specific quota and choose to reserve quota for this voucher above, the product can still be unavailable to the voucher holder if another quota associated with the product is sold out! {% endblocktrans %}
{% if form.subevent %} {% bootstrap_field form.subevent layout="control" %} {% endif %} {% if "seat" in form.fields %} {% bootstrap_field form.seat layout="control" %} {% endif %}
{% trans "Advanced settings" %} {% bootstrap_field form.block_quota layout="control" %} {% bootstrap_field form.allow_ignore_quota layout="control" %} {% bootstrap_field form.min_usages layout="control" %} {% bootstrap_field form.budget addon_after=request.event.currency layout="control" %} {% bootstrap_field form.tag layout="control" %} {% bootstrap_field form.comment layout="control" %} {% bootstrap_field form.show_hidden_items layout="control" %}
{% eventsignal request.event "pretix.control.signals.voucher_form_html" form=form %}

{% trans "Voucher history" %}

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