summaryrefslogtreecommitdiffstats
path: root/templates/polls/poll_detail.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/polls/poll_detail.html')
-rwxr-xr-xtemplates/polls/poll_detail.html39
1 files changed, 39 insertions, 0 deletions
diff --git a/templates/polls/poll_detail.html b/templates/polls/poll_detail.html
new file mode 100755
index 0000000..35b7757
--- /dev/null
+++ b/templates/polls/poll_detail.html
@@ -0,0 +1,39 @@
+{% 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">
+
+{{ object.header }}
+<h1>{{ object.question }}</h1>
+
+
+{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
+
+<form action="/polls/{{ object.id }}/vote/" method="post">
+{% for choice in object.choice_set.all %}
+ <input type="radio" name="choice" id="choice{{ forloop.counter }}" value="{{ choice.id }}" />
+ <label for="choice{{ forloop.counter }}">{{ choice.choice }}</label><br />
+{% endfor %}
+<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 %}
+