annotate gpp/templates/polls/poll_vote.html @ 24:c284c0e5c5db

News tweaks to story and story summary templates.
author Brian Neal <bgneal@gmail.com>
date Sun, 19 Apr 2009 21:51:25 +0000
parents dbd703f7d63a
children 6a5549c2efb5
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>
gremmie@1 9 <form action="." method="post">
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 %}