{% load i18n %}
{% load bootstrap3 %}
{% if order.status == "n" %}
{% if order.require_approval %}
{% trans "Approval pending" %}
{% elif order.total == 0 %}
{% trans "Confirmation pending" context "order state" %}
{% elif event.settings.payment_pending_hidden %}
{# intentionally left blank #}
{% else %}
{% trans "Payment pending" %}
{% endif %}
{% if not event.settings.payment_pending_hidden %}
{% endif %}
{% elif order.status == "p" %}
{% if order.count_positions == 0 %}
{% trans "Canceled (paid fee)" %}
{% elif order.total == 0 %}
{% trans "Confirmed" context "order state" %}
{% else %}
{% trans "Paid" %}
{% endif %}
{% elif order.status == "e" %}
{% trans "Expired" %}
{% elif order.status == "c" %}
{% trans "Canceled" %}
{% endif %}