ku-polls/polls/templates/polls/results.html
sosokker 477903dfd3 Update Views of all pages - index, detail, result / Add Home Page
Update views of all pages and add HomeView (Homepage) + Update data of sqlite3 polls database
2023-08-28 22:32:42 +07:00

18 lines
606 B
HTML

{% extends 'polls/base.html' %}
{% block content %}
<main>
<section class="poll-results">
<div class="poll-header">
<h1 class="poll-question">{{ question.question_text }}</h1>
</div>
<ul class="choice-list">
{% for choice in question.choice_set.all %}
<li class="choice-item">{{ choice.choice_text }} — {{ choice.votes }} vote{{ choice.votes|pluralize }}</li>
{% endfor %}
</ul>
<a href="{% url 'polls:detail' question.id %}" class="vote-again">Vote again?</a>
</section>
</main>
{% endblock content %}