{% 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.swap_states.all %} {% for state in position.swap_states.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 %} {% trans "Cancel request" %} {% endif %} {# TODO allow creation if all others are completed #} {% endfor %} {% elif position.item in items %} {% trans "You can request to swap or cancel this product." %} {% trans "New request" %} {% else %} {% trans "This product cannot be changed at the moment." %} {% endif %}
  2. {% endfor %}