mirror of
https://github.com/Sosokker/ku-polls.git
synced 2026-01-02 03:34:09 +01:00
Update views of all pages and add HomeView (Homepage) + Update data of sqlite3 polls database
18 lines
606 B
HTML
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 %}
|