{% extends "pretixcontrol/event/base.html" %} {% load i18n %} {% load static %} {% block title %}{% trans "Automated email rules" %}{% endblock %} {% block content %}

{% trans "Automated email rules" %}

{% blocktrans trimmed %} Email rules allow you to automatically send emails to your customers at a specific time before or after your event. {% endblocktrans %}

{% if rules %}

{% for r in rules %} {% endfor %}
{% trans "Email subject" %} {% trans "Recipient" %} {% trans "Scheduled time" %} {% trans "Products" %} {% trans "Sent / Total dates" context "subevent" %}
{% if not r.enabled %}{% endif %} {{ r.subject }} {% if not r.enabled %}{% endif %} {{ r.get_send_to_display }} {{ r.human_readable_time }} {% if not r.date_is_absolute %}
{% trans "Next execution:" %} {% if r.next_execution %} {{ r.next_execution|date:"SHORT_DATETIME_FORMAT" }} {% else %} {% trans "unknown" %} {% endif %} {% if r.last_execution %}
{% trans "Last execution:" %} {{ r.last_execution|date:"SHORT_DATETIME_FORMAT" }} {% endif %} {% endif %}
{% if r.all_products %} {% trans "All" %} {% else %}
    {% for item in r.limit_products.all %}
  • {{ item }}
  • {% endfor %}
{% endif %}
{{ r.sent_mails }} / {{ r.total_mails }}
{% include "pretixcontrol/pagination.html" %} {% else %}

{% blocktrans trimmed %} You haven't created any rules yet. {% endblocktrans %}

{% endif %} {% endblock %}