{% load eventurl %} {% load i18n %} {% load static %}

{% trans "Ticket transfer" %}

    {% for position in positions %}
  1. {{ position.item.name }}{% if position.attendee_name %} ({{ position.attendee_name }}){% endif %}: {% if position.ordered_requests.all %} {% for state in position.ordered_requests.all %} {{ state.get_notification }} {% if state.swap_type == state.Types.SWAP and state.state == state.States.REQUESTED and specific_swap_allowed %} {% trans "If you want to swap with somebody specific, give them this swap token: " %} {{ state.swap_code }} {% endif %} {% if state.state != state.States.COMPLETED and not state.partner and state.swap_type == state.Types.SWAP %} {% trans "Cancel request" %} {% endif %} {# TODO allow creation if all others are completed #} {% endfor %} {% endif %} {% if position.no_active_requests and position.actions_allowed %} {% if position.actions_allowed|length == 2 %} {% trans "You can request to swap or cancel this product." %} {% elif position.actions_allowed == "s" %} {% trans "You can request to swap this product." %} {% elif position.actions_allowed == "c" %} {% trans "You can request to cancel this product." %} {% endif %} {% trans "New request" %} {% elif position.no_active_requests %} {% trans "This product cannot be changed at the moment." %} {% endif %}
  2. {% endfor %}