Mercurial > public > sg101
annotate gpp/templates/polls/poll_vote.html @ 295:26fc9ac9a0eb
Fixing #133; add the ability to edit a topic's title when you edit the first post in that topic.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 08 Jan 2011 22:04:54 +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 %} |