{% extends "pretixcontrol/event/base.html" %} {% load i18n %} {% load bootstrap3 %} {% load formset_tags %} {% load escapejson %} {% block title %}{% trans "Placeholders" %}{% endblock %} {% block content %}

{% trans "Email placeholder" %} {question_{{ form.instance.placeholder_name }}}

You can use this placeholder to add content to emails sent to users, depending on the answer they gave to the question "{{ form.instance.question }}".
{% csrf_token %} {% bootstrap_form_errors form %} {% bootstrap_field form.use_fallback_when_unanswered layout="control" %} {% bootstrap_field form.fallback_content layout="control" %}

{% trans "Rules" %}

The rules can be counterintuitive – please test them carefully and note the following:

  • Emails are sent for specific orders.
  • For each order position in the given order, the rules are tested from top to bottom.
  • Only the first matching rule is used for each order position!
  • If one rule matches multiple times, it will only be put into the email once.
{{ formset.management_form }} {% bootstrap_formset_errors formset %}
{% for form in formset %}
{{ form.id }} {% bootstrap_field form.DELETE form_group_class="" layout="inline" %} {% bootstrap_field form.ORDER form_group_class="" layout="inline" %}

{% blocktrans trimmed with id=forloop.counter %} Rule {{ id }} {% endblocktrans %}

 
{% bootstrap_form_errors form %} {% bootstrap_label form.condition_operation.label %}
{% bootstrap_field form.condition_operation layout="inline" form_group_class="col-md-6" %} {% bootstrap_field form.condition_content layout="inline" form_group_class="col-md-6" %}
 
{% bootstrap_label form.content.label %}
{% bootstrap_field form.content layout="inline" form_group_class="" %}
 

{% endfor %}

{% endblock %}