{% extends "base.html" %} {% block title %}{{ _('Answers') }} · {{ form.title }} · {{ appearance.name }}{% endblock %} {% block content %}

← {{ form.title }}

{{ _('Answers') }}

{% if retention_date and rows %}

{% if form.deletion_mode == 'delete' %}{{ _('The retention period ends: the answers will be deleted on %(date)s.', date=retention_date | date) }}{% else %}{{ _('The retention period ends: the answers will be anonymized on %(date)s.', date=retention_date | date) }}{% endif %} {{ _('Settings') }}

{% endif %}

{{ _('Filter') }}

{% if filter_choices %} {% endif %}
{% if flt.active %}{{ _('Show all') }}{% endif %}

{% if flt.active %}{{ ngettext('%(num)d of %(total)s answer matches the filter.', '%(num)d of %(total)s answers match the filter.', rows | length, total=total) }}{% else %}{{ ngettext('%(num)d answer so far.', '%(num)d answers so far.', total) }}{% endif %} {{ _('Summary, lists and export follow the filter.') }}

{{ _('Overview of all answers') }}

{% if table.status_column %} {% if only_missing %}{{ _('Show everyone') }} {% elif pending %}{{ _('Only missing responses') }}{% endif %} {% endif %}
{% if table.status_column and not flt.active %}

{{ ngettext('%(num)d invited person has not responded yet.', '%(num)d invited people have not responded yet.', pending) }}

{% endif %} {% if table.rows %}
{% for h in table.headers %}{% endfor %} {% for row in table.rows %} {% set rid = table.row_ids[loop.index0] %} {% for cell in row %} {% if loop.first %} {% elif table.status_column and loop.index0 == 4 %} {% else %} {% endif %} {% endfor %} {% endfor %}
{{ h }}
{% if rid %}{{ cell }}{% endif %}{{ cell }}{{ '' if cell is none else cell }}

{{ _('The same table as in the export. The number opens the single answer.') }}

{% else %}

{{ _('No answers yet.') }}

{% endif %}

{{ _('Summary') }}

{% for s in summary %}

{{ s.question.label }} · {{ ngettext('%(num)d answer', '%(num)d answers', s.answered) }}

{% if s.poll_rows %}
{{ csrf_field(request) }} {% if s.question.config.answers == 'ynm' %}{% endif %} {% for row in s.poll_rows %} {% if s.question.config.answers == 'ynm' %}{% endif %} {% endfor %}
{{ _('Option') }}{{ _('Yes') }}{{ _('Maybe') }}{{ _('No') }}{{ _('Confirmed') }}
{{ row.text }}{% if row.proposed %} {{ _('proposed') }}{% endif %} {{ row.yes }}{{ row.maybe }}{{ row.no }}

{{ _('★ marks the option with the most “yes”. Confirm one or more options, usually after the poll has closed. Confirmed dates appear in the calendar file if it is enabled in the settings.') }} {{ _('Participants with an account get an email about newly confirmed dates (unless the form is anonymous).') }}

{% endif %} {% set lists = slot_lists.get(s.question.id) %} {% if lists %} {% for item in lists %} {% endfor %}
{{ _('Entry') }}{{ _('Places') }}{{ _('Signed up') }}{{ _('Waiting list') }}
{{ item.text }} {{ item.confirmed | length }}{% if item.capacity %} / {{ item.capacity }}{% if item.confirmed | length > item.capacity | int %} {{ _('overbooked') }}{% endif %}{% endif %} {{ item.confirmed | join(', ') or '–' }} {{ item.waiting | join(', ') or '–' }}
{% elif s.slot_rows %} {% for row in s.slot_rows %} {% endfor %}
{{ row.text }} {% if row.capacity %}{{ row.confirmed }}{% endif %} {{ row.confirmed }}{% if row.capacity %} / {{ row.capacity }}{% if row.confirmed > row.capacity | int %} {{ _('overbooked') }}{% endif %}{% endif %}{% if row.waiting %} · {{ ngettext('%(num)d waiting', '%(num)d waiting', row.waiting) }}{% endif %}
{% endif %} {% if s.bars %} {% for bar in s.bars %} {% endfor %}
{{ bar.label }} {{ bar.count }} {{ bar.count }}
{% endif %} {% if s.total is not none %}

{{ _('Sum') }}: {{ s.total }}

{% endif %} {% if s.average is not none %}

{{ _('Average') }}: {{ s.average }}

{% endif %} {% if s.note %}

{{ _('Order by average place') }}: {{ s.note }}

{% endif %} {% if s.texts %} {% if s.more_texts %}

{{ ngettext('and %(num)d more; see the export.', 'and %(num)d more; see the export.', s.more_texts) }}

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

{{ _('Export') }}

{{ csrf_field(request) }} {% for key, value in query.items() %}{% endfor %}
{% if pdf_available %}{% endif %}
{% if not pdf_available %}

{{ _('The PDF export needs the package reportlab. The administrator adds it with scripts/lock.sh and a new image.') }}

{% endif %}

{{ _('One row per answer, one column per question – the same table as above. XLSX, ODS and PDF carry the logo, the filter and the time of the export above the table and are set up for printing: landscape, all columns on one page width, the header row repeated on every page and page numbers in the footer. The CSV file uses semicolons and UTF-8, as Excel expects in German. Every export is recorded in the log.') }}

{% if not form.anonymous and has_slots and pdf_available %}

{{ _('Participant lists (PDF)') }}

{{ csrf_field(request) }} {% for key, value in query.items() %}{% endfor %}

{{ _('For printing, e.g. to sign in on site: one list per entry of the participation questions, with free places as empty rows and the waiting list below. A4 portrait with logo, page numbers and the header row repeated on every page. Follows the filter; recorded in the log.') }}

{% endif %}
{% endblock %}