{% extends "pretixcontrol/items/base.html" %} {% load i18n %} {% load bootstrap3 %} {% block title %}{% trans "Automatic discount" %}{% endblock %} {% block inside %}

{% trans "Automatic discount" %}

{% csrf_token %} {% bootstrap_form_errors form %}
{% trans "General information" %} {% bootstrap_field form.active layout="control" %} {% bootstrap_field form.internal_name layout="control" %} {% bootstrap_field form.available_from layout="control" %} {% bootstrap_field form.available_until layout="control" %} {% bootstrap_field form.sales_channels layout="control" %}
{% trans "Condition" context "discount" %} {% bootstrap_field form.condition_all_products layout="control" %} {% bootstrap_field form.condition_limit_products layout="control" %} {% bootstrap_field form.condition_apply_to_addons layout="control" %} {% bootstrap_field form.condition_ignore_voucher_discounted layout="control" %} {% if form.subevent_mode %} {% bootstrap_field form.subevent_mode layout="control" %} {% endif %}
{% bootstrap_field form.condition_min_count form_group_class="" %}
{% trans "OR" %}
{% bootstrap_field form.condition_min_value form_group_class="" %}
{% trans "Benefit" context "discount" %} {% bootstrap_field form.benefit_discount_matching_percent layout="control" addon_after="%" %} {% bootstrap_field form.benefit_only_apply_to_cheapest_n_matches layout="control" %}
{% if discount %}

{% trans "Discount history" %}

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