annotate gpp/templates/polls/poll_vote.html @ 339:b871892264f2

Adding the sg101 IRC bot code to SVN. This code is pretty rough and needs love, but it gets the job done (one of my first Python apps). This fixes #150.
author Brian Neal <bgneal@gmail.com>
date Sat, 26 Feb 2011 21:27:49 +0000
parents 88b2b9cb8c1f
children 1f139de929c4
rev   line source
gremmie@1 1 {% extends 'base.html' %}
bgneal@310 2 {% load url from future %}
gremmie@1 3 {% block title %}Polls: {{ poll.question }}{% endblock %}
gremmie@1 4 {% block custom_css %}
bgneal@312 5 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/polls.css" />
gremmie@1 6 {% endblock %}
gremmie@1 7 {% block content %}
gremmie@1 8 <h2>Poll</h2>
gremmie@1 9 <h3>{{ poll.question }}</h3>
bgneal@194 10 <form action="." method="post">{% csrf_token %}
gremmie@1 11 <div class="poll-form">
gremmie@1 12 {{ vote_form.as_p }}
gremmie@1 13 <input type="submit" value="Vote" />
gremmie@1 14 </div>
gremmie@1 15 </form>
gremmie@1 16 <p class="poll-nav">
gremmie@1 17 <a href="{{ poll.get_absolute_url }}">Poll Details</a>
bgneal@310 18 | <a href="{% url 'polls.views.poll_results' poll.id %}">View Results</a>
bgneal@310 19 | <a href="{% url 'polls.views.poll_index' %}">Poll Index</a>
gremmie@1 20 </p>
gremmie@1 21 <p>This poll was published on {{ poll.start_date|date:"F d, Y" }}.</p>
gremmie@1 22 {% endblock %}