{% extends "pretixcontrol/event/base.html" %} {% load i18n %} {% load bootstrap3 %} {% load staticfiles %} {% block title %}{% trans "pretixdroid configuration" %}{% endblock %} {% block content %}

{% trans "pretixdroid configuration" %}

{% blocktrans trimmed %} pretixdroid is an Android app that you can use to control tickets at the entrance of your event. {% endblocktrans %}

{% if not configs or "create" in request.GET %}

{% trans "Create app configuration" %}

{% blocktrans trimmed %} To start scanning tickets with our Android app, first create a configuration code here: {% endblocktrans %}

{% csrf_token %} {% bootstrap_form_errors add_form %} {% bootstrap_field add_form.all_items layout="horizontal" %} {% bootstrap_field add_form.items layout="horizontal" %} {% bootstrap_field add_form.show_info layout="horizontal" %} {% bootstrap_field add_form.allow_search layout="horizontal" %} {% if add_form.subevent %} {% bootstrap_field add_form.subevent layout="horizontal" %} {% endif %}
{% endif %} {% if configs and "create" not in request.GET %}

{% trans "Existing app configurations" %}

{% trans "Create a new configuration" %}
{% csrf_token %} {% if request.event.has_subevents %} {% endif %} {% for ac in configs %} {% if request.event.has_subevents %} {% endif %} {% endfor %}
{% trans "ID" %}{% trans "Date" context "subevent" %}{% trans "Items" %} {% trans "Show info" %} {% trans "Allow search" %}
{{ ac.key|slice:"0:8" }}…{% if ac.subevent %}{{ ac.subevent }}{% else %}{% trans "All" %}{% endif %} {% if ac.all_items %} {% trans "All" %} {% else %} {% for item in ac.items.all %} {{ item.name }} {% if forloop.revcounter0 > 0 %}
{% endif %} {% endfor %} {% endif %}
{% if ac.show_info %}{% trans "Yes" %}{% else %}{% trans "No" %}{% endif %} {% if ac.allow_search %}{% trans "Yes" %}{% else %}{% trans "No" %}{% endif %} {% trans "Show QR code" %}
{% endif %} {% endblock %}