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

{% trans "Create new vouchers" %}

{% csrf_token %} {% capture as number_field silent %} {% bootstrap_field form.number layout="inline" %} {% endcapture %} {% capture as max_usages_field silent %} {% bootstrap_field form.max_usages layout="inline" %} {% endcapture %} {% capture as valid_until_field silent %} {% bootstrap_field form.valid_until layout="inline" %} {% endcapture %} {% capture as value_field_percent silent %} {% bootstrap_field form.value_percent layout="inline" %} {% endcapture %} {% capture as value_field_subtract silent %} {% bootstrap_field form.value_subtract layout="inline" %} {% endcapture %} {% capture as value_field_set silent %} {% bootstrap_field form.value_set layout="inline" %} {% endcapture %} {% bootstrap_form_errors form %}

{% trans "How many vouchers do you want to create?" %}

{% blocktrans trimmed %} Create {{ number_field }} voucher codes. Each of them can be redeemed {{ max_usages_field }} times. {% endblocktrans %}

{% trans "How long should the vouchers be valid?" %}

{% trans "For which products should the vouchers be applicable?" %}

{% bootstrap_field form.itemvar layout="inline" %}

{% trans "Should the vouchers modify the product's price?" %}

{% trans "Should the vouchers block quota?" %}

Show advanced options

{% trans "Advanced options" %}

{% bootstrap_field form.allow_ignore_quota %}

{% trans "Comment" %}

{% bootstrap_field form.comment layout="inline" form_group_class="comment" %}
{% trans "The text entered in this field will not be visible to the user and is available for your convenience." %}
{% eventsignal request.event "pretix.control.signals.voucher_form_html" form=form %}
{% endblock %}