Mercurial > public > sg101
annotate gpp/templates/polls/poll_vote.html @ 310:daa2916f5b34
Fixing 145; New url tag behavior (forwards compatibility) in Django 1.3.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 20 Jan 2011 04:03:48 +0000 |
parents | 6a5549c2efb5 |
children | 88b2b9cb8c1f |
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 %} |
gremmie@1 | 5 <link rel="stylesheet" type="text/css" href="{{ MEDIA_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 %} |