{% extends "pretixcontrol/event/base.html" %} {% load i18n %} {% load bootstrap3 %} {% load formset_tags %} {% load eventsignal %} {% load static %} {% load money %} {% load icon %} {% block title %}{% blocktrans trimmed with name=subevent.name context "subevent" %}Date: {{ name }} {% endblocktrans %}{% endblock %} {% block content %}

{% blocktrans trimmed with name=subevent.name context "subevent" %}Date: {{ name }}{% endblocktrans %} {% if 'event.subevents:write' in request.eventpermset %} {% trans "Edit" %} {% endif %}

{% trans "General information" %}
{% trans "Name" %}
{{ subevent.name }}
{% trans "ID" %}
#{{ subevent.pk }}
{% trans "Status" %}
{% if not subevent.active %} {% trans "Disabled" %} {% elif subevent.presale_has_ended %} {% trans "Presale over" %} {% elif not subevent.presale_is_running %} {% trans "Presale not started" %} {% else %} {% trans "On sale" %} {% endif %}
{% trans "Event start time" %}
{{ subevent.date_from|date:"SHORT_DATETIME_FORMAT" }}
{% trans "Event end time" %}
{{ subevent.date_to|date:"SHORT_DATETIME_FORMAT" }}
{% if subevent.date_admission %}
{% trans "Admission time" %}
{{ subevent.date_admission|date:"SHORT_DATETIME_FORMAT" }}
{% endif %} {% if subevent.presale_start %}
{% trans "Start of presale" %}
{{ subevent.presale_start|date:"SHORT_DATETIME_FORMAT" }}
{% endif %} {% if subevent.presale_end %}
{% trans "End of presale" %}
{{ subevent.presale_end|date:"SHORT_DATETIME_FORMAT" }}
{% endif %} {% if subevent.location %}
{% trans "Location" %}
{{ subevent.location|linebreaksbr }}
{% endif %}
{% trans "Show in lists" %}
{{ subevent.is_public|yesno }}
{% for k, v in subevent.meta_data.items %}
{{ k }}
{{ v }}
{% endfor %} {% if subevent.comment %}
{% trans "Internal comment" %}
{{ subevent.comment|linebreaksbr }}
{% endif %}
{% trans "Quotas" %}
{% for q in quotas %} {% endfor %}
{% trans "Quota name" %} {% trans "Products" %} {% trans "Total capacity" %} {% trans "Capacity left" %}
{{ q.name }} {% if q.ignore_for_event_availability %} {% endif %} {% if q.size == None %}Unlimited{% else %}{{ q.size }}{% endif %} {% include "pretixcontrol/items/fragment_quota_availability.html" with availability=q.cached_avail closed=q.closed %} {% if 'event.items:write' in request.eventpermset %} {% endif %}
{% if checkinlists %}
{% trans "Check-in lists" %}
{% if "event.orders:read" in request.eventpermset %} {% endif %} {% for cl in checkinlists %} {% if "event.orders:read" in request.eventpermset %} {% endif %} {% endfor %}
{% trans "Name" %}{% trans "Checked in" %}{% trans "Products" %}
{{ cl.name }}
{{ cl.checkin_count|default_if_none:"0" }} / {{ cl.position_count|default_if_none:"0" }}
{% if cl.all_products %} {% trans "All" %} {% else %}
    {% for item in cl.limit_products.all %}
  • {{ item }}
  • {% endfor %}
{% endif %}
{% if "event.orders:read" in request.eventpermset %} {% endif %} {% if "event.settings.general:write" in request.eventpermset %} {% endif %}
{% endif %} {% eventsignal request.event "pretix.control.signals.subevent_detail_html" quota=quota %}
{% if "event.orders:read" in request.eventpermset %}
{% trans "Orders" %} {{ order_count }} {% if order_count %}
{% for o in orders %} {% endfor %}
{% trans "Order code" %} {% trans "Details" %}
{{ o.code }}
{% if o.testmode %} {% trans "TEST MODE" %} {% endif %} {% if o.status == "p" and o.pcnt == 0 %} {# Everything related to this subevent is canceled #} {% trans "partially canceled" %} {% else %} {% include "pretixcontrol/orders/fragment_order_status.html" with order=o %} {% endif %}
{% if "." in o.sales_channel.icon %} {% else %} {% endif %} {{ o.datetime|date:"SHORT_DATETIME_FORMAT" }} {% if o.email %}
{% icon "envelope-o fa-fw text-muted" %} {{ o.email|default_if_none:"" }} {% endif %} {% if o.invoice_address.name %}
{% icon "user fa-fw text-muted" %} {{ o.invoice_address.name }} {% endif %}
{% icon "ticket text-muted fa-fw" %} {{ o.pcnt }} {% if o.comment %}
{{ o.comment|linebreaksbr }} {% endif %} {% if o.custom_followup_due %}
{% blocktrans trimmed with date=o.custom_followup_at|date:"SHORT_DATE_FORMAT" context "followup" %} TODO {{ date }}{% endblocktrans %} {% elif o.custom_followup_at %}
{% blocktrans trimmed with date=o.custom_followup_at|date:"SHORT_DATE_FORMAT" context "followup" %} TODO {{ date }}{% endblocktrans %} {% endif %}
{% if order_count > 10 %}

{% trans "View all" %}

{% endif %} {% else %}

{% blocktrans trimmed %} No orders found. {% endblocktrans %}

{% endif %}
{% endif %}

{% trans "Date history" context "subevent" %}

{% include "pretixcontrol/includes/logs.html" with obj=subevent %}
{% endblock %}