{% extends "pretixcontrol/items/base.html" %} {% load i18n %} {% load bootstrap3 %} {% load escapejson %} {% load getitem %} {% load static %} {% load compress %} {% block title %}{% trans "Check-in simulator" %}{% endblock %} {% block inside %}

{% blocktrans with name=checkinlist.name %}Check-in list: {{ name }}{% endblocktrans %} {% if 'can_change_event_settings' in request.eventpermset %} {% trans "Edit list configuration" %} {% endif %}

{% trans "Check-in simulator" %}

{% blocktrans trimmed %} This tool allows you to validate your check-in configuration. You can enter a barcode plus some optional parameters and we will show you the response of the check-in list. No actual check-in will be performed and no modification to the system state is made. {% endblocktrans %}

{% csrf_token %} {% bootstrap_form_errors form %} {% bootstrap_field form.raw_barcode layout="control" %} {% bootstrap_field form.datetime layout="control" %} {% bootstrap_field form.checkin_type layout="control" %} {% bootstrap_field form.gate layout="control" %} {% bootstrap_field form.ignore_unpaid layout="control" %} {% bootstrap_field form.questions_supported layout="control" %}
{% if result %}
{% trans "Result" %}
{% if result.status == "ok" %} {% elif result.status == "incomplete" %} {% elif result.status == "error" %} {% if result.reason == "already_redeemed" %} {% else %} {% endif %} {% endif %}
{% if result.status == "ok" %}

{% trans "Valid check-in" %}

{% elif result.status == "incomplete" %}

{% trans "Additional information required" %}

{% trans "The following questions must be answered before check-in can be completed:" %}

{% elif result.status == "error" %}

{{ reason_labels|getitem:result.reason }}

{% if result.reason_explanation %}

{{ result.reason_explanation }}

{% endif %} {% endif %} {% if result.position %} {% if result.require_attention %}

{% trans "Special attention required" %}

{% endif %} {% for t in result.checkin_texts %}

{{ t }}

{% endfor %} {% if result.position_object %} {% for a in result.position_object.answers.all %} {% if a.question.show_during_checkin %}

{{ a.question.question }} {{ a }}

{% endif %} {% endfor %} {% endif %}

{{ result.position.order }}-{{ result.position.positionid }}

{% if result.position.attendee_name %}

{{ result.position.attendee_name }}

{% endif %} {% endif %} {% if result.rule_graph %}
{% endif %}
{% endif %} {% if DEBUG %} {% else %} {% endif %} {% compress js %} {% endcompress %} {% compress js %} {% endcompress %} {% endblock %}