summaryrefslogtreecommitdiffstats
path: root/templates/polls/results.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/polls/results.html')
-rwxr-xr-xtemplates/polls/results.html46
1 files changed, 46 insertions, 0 deletions
diff --git a/templates/polls/results.html b/templates/polls/results.html
new file mode 100755
index 0000000..57c6d6b
--- /dev/null
+++ b/templates/polls/results.html
@@ -0,0 +1,46 @@
+{% extends "admin/base_site.html" %}
+{% load i18n %}
+
+{% block stylesheet %}{% load adminmedia %}{% admin_media_prefix %}css/dashboard.css{% endblock %}
+
+{% block coltype %}colMS{% endblock %}
+
+{% block bodyclass %}dashboard{% endblock %}
+
+{% block breadcrumbs %}{% endblock %}
+
+{% block content %}
+<div id="content-main">
+
+<h1>{{ poll.question }}</h1>
+
+
+{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
+<ul>
+{% for choice in poll.choice_set.all %}
+ <li>{{ choice.choice }} -- {{ choice.votes }} vote{{ choice.votes|pluralize }}</li>
+{% endfor %}
+</ul>
+
+<form action="/polls/{{ poll.id }}/vote/" method="post">
+<ul>
+{% for choice in poll.choice_set.all %}
+ <li>
+ <input type="radio" name="choice" id="choice{{ forloop.counter }}" value="{{ choice.id }}" />
+ <label for="choice{{ forloop.counter }}">{{ choice.choice }}</label></li>
+{% endfor %}
+</ul>
+<input type="submit" value="Vote" />
+</form>
+</div>
+
+{% endblock %}
+
+{% block sidebar %}
+<div id="content-related">
+ <div class="module" id="recent-actions-module">
+ <h2>{% trans 'Recent Actions' %}</h2>
+</div>
+</div>
+{% endblock %}
+