{% extends 'votebase/base.html' %} {% load i18n graph_extras staticfiles %} {% block title %}{{ survey.title }}{% endblock %} {% block content_title %} {% trans 'Back' %}{{ survey.title }} {% endblock %} {% block content_title_extra %}{% include 'surveys/helpers/advanced.html' with active='statistics' %}{% endblock %} {% block subtitle %}{% trans 'Survey statistics' %}{% endblock %} {% block subtitle_extra %}{% include 'surveys/helpers/tabs.html' with survey=survey %}{% endblock %} {% block js %} {% if object_list %} {% endif %} {% endblock %} {% block content %}
{% if survey.round_set.all.count > 1 %}
{% include 'surveys/helpers/rounds.html' with rounds=survey.round_set.all round=round url='statistics_graphs_round' total_url='statistics_graphs' reversed=1 %}
{% else %}
{% if object_list %}{% endif %} {% endif %} {% if not object_list %} {% trans 'There is no question in this survey. Create some.' %} {% else %} {% if survey.voter_set.count > request.user.get_profile.get_voters_limit %}
{% blocktrans with survey.voter_set.count as voters_count and request.user.get_profile.get_voters_limit as package_voters_limit and request.user.get_profile.get_package_display as package %} You have {{ voters_count }} voters in this survey, but your voter limit per survey is {{ package_voters_limit }} ({{ package }} package). {% endblocktrans %} {% trans 'View pricing'%}
{% endif %} {% if statistics_categories %}

{% trans 'Average result of categories' %}

{% for cstats in statistics_categories %}
{{ cstats.category }} {{ cstats.percent|floatformat:"2" }}% {% trans 'Count of questions' %}: {{ cstats.count_questions }}
{% endfor %}
{% endif %}
{% if statistics_categories %}

{% trans 'Questions' %}

{% endif %}
{% trans 'Loading, please wait.' %}
{% for question in object_list %} {% endfor %}
{{ forloop.counter}}. {% if survey.round_set.all.count == 1 or not round %} {% autoescape off %}{{ question.title|striptags|truncatechars:190 }}{% endautoescape %} {% if question.is_required %}*{% endif %} {% else %} {% autoescape off %}{{ question.title|striptags|truncatechars:190 }}{% endautoescape %} {% if question.is_required %}*{% endif %} {% endif %} {% if survey.round_set.all.count == 1 or not round %} {{ survey }} {% else %} {{ round }} {% endif %}
{% endif %}
{% endblock %}