{% extends "pretixcontrol/items/base.html" %} {% load i18n %} {% load bootstrap3 %} {% load escapejson %} {% load formset_tags %} {% block title %}{% blocktrans with name=question.question %}Question: {{ name }}{% endblocktrans %}{% endblock %} {% block inside %}

{% blocktrans with name=question.question %}Question: {{ name }}{% endblocktrans %} {% if 'event.items:write' in request.eventpermset %} {% trans "Edit question" %} {% endif %}

{% if 'event.orders:read' in request.eventpermset %}

{% trans "Filter" %}

{% bootstrap_field form.status %}
{% bootstrap_field form.item %}
{% if has_subevents %}
{% bootstrap_field form.subevent %}
{% bootstrap_field form.date_range %}
{% endif %}
{% endif %}
{% if 'event.orders:read' not in request.eventpermset %}

{% blocktrans trimmed %} No permission to view answers. {% endblocktrans %}

{% elif not stats %}

{% blocktrans trimmed %} No matching answers found. {% endblocktrans %}

{% if not items %}

{% trans "You need to assign the question to a product to collect answers." %}

{% trans "Edit question" %} {% endif %}
{% else %}
{{ stats|json_script:"question-chart-data" }}
{% for stat in stats %} {% endfor %}
{% trans "Answer" %} {% trans "Count" %} {% trans "% of answers" %} {% trans "% of tickets" %}
{{ stat.answer }} {{ stat.count }} {{ stat.percentage|floatformat:1 }} % {{ stat.percentage_attendees|floatformat:1 }} %
{% trans "Sum" %} {{ total }}
{% endif %}

{% trans "Question history" %}

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