{% extends basetemplate %} {% load i18n %} {% load icon %} {% load bootstrap3 %} {% load urlreplace %} {% block title %}{% trans "Withdrawals" %}{% endblock %} {% block content %}

{% trans "Withdrawals" %}

{% if request.event and withdrawals_without_event_exist %}

{% blocktrans trimmed %} There are unsettled withdrawals not listed here as they are not assigned to any event. {% endblocktrans %}
{% trans "Check unassigned withdrawals" %}

{% endif %} {% if events_without_permission_exist and withdrawals_without_event_exist %}

{% blocktrans trimmed %} There are withdrawals that are not assigned to any event. You do not have sufficient permissions to view them. {% endblocktrans %}
{% blocktrans trimmed %}To view unassigned withdrawals, you need read access on orders in all events.{% endblocktrans %}

{% endif %}

{% trans "Filter" %}

{% bootstrap_field filter_form.query %}
{% bootstrap_field filter_form.status %}
{% if filter_form.event %}
{% bootstrap_field filter_form.event %}
{% endif %}
{% if not filter_form.filtered and withdrawals|length == 0 %}

{% blocktrans trimmed %} No withdrawals to act upon. {% endblocktrans %}

{% else %}
{% if not request.event %} {% endif %} {% for w in withdrawals %} {% if not request.event %} {% endif %} {% endfor %}
{% trans "Withdrawn by" %} {% trans "Order" %} {% trans "Event" %} {% trans "Received" %} {% trans "Status" %} {% trans "Actions" %}
{% if request.event %} {% url "plugins:pretix_withdrawal:control.event.view" event=request.event.slug organizer=request.organizer.slug pk=w.pk as withdrawal_url %} {% else %} {% url "plugins:pretix_withdrawal:control.organizer.view" organizer=request.organizer.slug pk=w.pk as withdrawal_url %} {% endif %} {% if w.name %} {{ w.name }}
{{ w.email }} {% else %} {{ w.email }} {% endif %}
{% if w.message %}
{% icon "comment-o" %} {% endif %} {% if w.internal_notes %} {% if not w.message %}
{% endif %} {% icon "sticky-note-o" %} {% endif %}
{% if w.order %} {% if request.event %} {{ w.order.code }} {% else %} {{ w.order.full_code }} {% endif %} {% if w.email != w.order.email %} {% if '@' in w.order.email %}
{{ w.order.email }} {% endif %}
{% icon "exclamation-triangle" %} {% if '@' not in w.order.email %} {% trans "Beware: order has no email - withdrawal might be from a different email than the order!" %} {% else %} {% trans "Beware: withdrawal is from a different email than the order!" %} {% endif %} {% endif %} {% else %} {{ w.order_code }} {% if request.event %} {% icon "question-circle" %} {% endif %} {% endif %}
{% if w.event %} {{ w.event }} {% endif %} {{ w.created }} {% if not w.settled %} {% trans "Not settled" %} {% else %} {% trans "Settled" %} {% endif %} {% if not w.settled %} {% if request.event %} {% url "plugins:pretix_withdrawal:control.event.settle" event=request.event.slug organizer=request.organizer.slug pk=w.pk as mark_settled_url %} {% else %} {% url "plugins:pretix_withdrawal:control.organizer.settle" organizer=request.organizer.slug pk=w.pk as mark_settled_url %} {% endif %} {% trans "Mark as settled" %} {% endif %}
{% include "pretixcontrol/pagination.html" %} {% endif %} {% endblock %}