
{% extends "base.html" %}

{% block title %}Result for {{ poll.name }}{% endblock %}

{% block page_title %}Result for {{ poll.name }}{% endblock %}

{% block content %}
<ul style="list-style-type: none">
    <li> Result: {{ result_categ.text }} </li>
    <li> Result ranges: from {{ result_categ.from_score }} to {{ result_categ.to_score }} </li>
    <li> Total score: {{ total_score }} </li>
    <li> {{ msg }} </li>
</ul>
<ul style="list-style-type: none">
{% for question, answers in sel_questions.items %}
    <li>Q: {{ question.text }}</li>
        <ul>
            {% for answer in answers %}
                <li>{{ answer.text }}</li>
            {% endfor %}
        </ul>
{% endfor %}
</ul>

{% endblock %}


