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

← {{ _('Back') }}

{{ form.title }}

{% if not shown %} {% if form.results_visibility == 'after_close' %}

{{ _('The results are shown here once the form has closed.') }}

{% else %}

{{ _('The results are shown here after you have taken part.') }}

{% endif %} {% else %}

{{ ngettext('Results from %(num)d answer.', 'Results from %(num)d answers.', total) }} {{ _('Free-text answers and personal details are not shown.') }}

{% for s in results %}

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

{% if s.poll_rows %} {% 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') }}
{{ row.text }}{% if row.confirmed %} {{ _('confirmed') }}{% endif %}{{ row.yes }}{{ row.maybe }}{{ row.no }}

{{ _('★ marks the option with the most “yes”.') }}

{% endif %} {% if s.slot_rows %} {% set by_option = slot_names.get(s.question.id) or {} %} {% for row in s.slot_rows %} {% set who = by_option.get(row.id) %} {% endfor %}
{{ row.text }}{% if who and (who.confirmed or who.waiting) %}{% if who.confirmed %}{{ who.confirmed | join(', ') }}{% endif %}{% if who.waiting %}{% if who.confirmed %} · {% endif %}{{ _('Waiting list:') }} {{ who.waiting | join(', ') }}{% endif %}{% endif %} {% if row.capacity %}{{ row.confirmed }}{% endif %} {{ row.confirmed }}{% if row.capacity %} / {{ row.capacity }}{% 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 %}
{% else %}

{{ _('This form has no questions with results that can be shown.') }}

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