{% extends basetemplate %} {% load locale %} {% load i18n %} {% load icon %} {% load bootstrap3 %} {% block title %}{% trans "Withdrawal" %}{% endblock %} {% block content %}

{% trans "Withdrawal" %} {% if not withdrawal.settled %} {% trans "Not settled" %} {% else %} {% trans "Settled" %} {% endif %}

{% trans "Details" %}

{% trans "Received" %}
{{ withdrawal.created }}
{% trans "Settled" %}
{% if withdrawal.settled %}{{ withdrawal.settled }}{% else %}{% trans "Not settled" %}{% endif %}

{% trans "Name" %}
{{ withdrawal.name }}
{% trans "Email" %}
{{ withdrawal.email }}
{% trans "Locale" %}
{{ withdrawal.locale|human_readable_locale }}
{% trans "Order" %}
{% if withdrawal.order %} {% if request.event %} {{ withdrawal.order.code }} {% else %} {{ withdrawal.order.full_code }} {% endif %} {% if withdrawal.email != withdrawal.order.email %} {% if '@' in withdrawal.order.email %}
{{ withdrawal.order.email }} {% endif %}
{% icon "exclamation-triangle" %} {% if '@' not in withdrawal.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 %} {{ withdrawal.order_code }} {% if request.event %} {% icon "question-circle" %} {% endif %} {% endif %}
{% if not request.event %}
{% trans "Event" %}
{% if withdrawal.event %} {{ withdrawal.event }} {% else %} {% trans "unknown" %} {% endif %}
{% endif %}

{% trans "Comments" %}

{% trans "Customer reference" %}
{{ withdrawal.locale|human_readable_locale }}
{{ withdrawal.message|default:"–"|linebreaksbr }}
{% if request.event %} {% url "plugins:pretix_withdrawal:control.event.comment" event=request.event.slug organizer=request.organizer.slug pk=withdrawal.pk as action %} {% else %} {% url "plugins:pretix_withdrawal:control.organizer.comment" organizer=request.organizer.slug pk=withdrawal.pk as action %} {% endif %}
{% csrf_token %}
{% bootstrap_field comment_form.internal_notes layout="control" %}


{% if not withdrawal.settled %}
{% if request.event %} {% url "plugins:pretix_withdrawal:control.event.settle" event=request.event.slug organizer=request.organizer.slug pk=withdrawal.pk as mark_settled_url %} {% else %} {% url "plugins:pretix_withdrawal:control.organizer.settle" organizer=request.organizer.slug pk=withdrawal.pk as mark_settled_url %} {% endif %} {% trans "Mark as settled" %}
{% endif %} {% endblock %}