annotate gpp/templates/polls/poll_vote.html @ 195:136719cbcb3c

First commit of Ken Dushane's site theme.
author Brian Neal <bgneal@gmail.com>
date Wed, 07 Apr 2010 01:36:51 +0000
parents 6a5549c2efb5
children daa2916f5b34
rev   line source
gremmie@1 1 {% extends 'base.html' %}
gremmie@1 2 {% block title %}Polls: {{ poll.question }}{% endblock %}
gremmie@1 3 {% block custom_css %}
gremmie@1 4 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/polls.css" />
gremmie@1 5 {% endblock %}
gremmie@1 6 {% block content %}
gremmie@1 7 <h2>Poll</h2>
gremmie@1 8 <h3>{{ poll.question }}</h3>
bgneal@194 9 <form action="." method="post">{% csrf_token %}
gremmie@1 10 <div class="poll-form">
gremmie@1 11 {{ vote_form.as_p }}
gremmie@1 12 <input type="submit" value="Vote" />
gremmie@1 13 </div>
gremmie@1 14 </form>
gremmie@1 15 <p class="poll-nav">
gremmie@1 16 <a href="{{ poll.get_absolute_url }}">Poll Details</a>
gremmie@1 17 | <a href="{% url polls.views.poll_results poll.id %}">View Results</a>
gremmie@1 18 | <a href="{% url polls.views.poll_index %}">Poll Index</a>
gremmie@1 19 </p>
gremmie@1 20 <p>This poll was published on {{ poll.start_date|date:"F d, Y" }}.</p>
gremmie@1 21 {% endblock %}