Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
309:8a0bae48b6ca | 310:daa2916f5b34 |
---|---|
1 {% extends 'base.html' %} | 1 {% extends 'base.html' %} |
2 {% load url from future %} | |
2 {% block title %}Polls: {{ poll.question }}{% endblock %} | 3 {% block title %}Polls: {{ poll.question }}{% endblock %} |
3 {% block custom_css %} | 4 {% block custom_css %} |
4 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/polls.css" /> | 5 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/polls.css" /> |
5 {% endblock %} | 6 {% endblock %} |
6 {% block content %} | 7 {% block content %} |
12 <input type="submit" value="Vote" /> | 13 <input type="submit" value="Vote" /> |
13 </div> | 14 </div> |
14 </form> | 15 </form> |
15 <p class="poll-nav"> | 16 <p class="poll-nav"> |
16 <a href="{{ poll.get_absolute_url }}">Poll Details</a> | 17 <a href="{{ poll.get_absolute_url }}">Poll Details</a> |
17 | <a href="{% url polls.views.poll_results poll.id %}">View Results</a> | 18 | <a href="{% url 'polls.views.poll_results' poll.id %}">View Results</a> |
18 | <a href="{% url polls.views.poll_index %}">Poll Index</a> | 19 | <a href="{% url 'polls.views.poll_index' %}">Poll Index</a> |
19 </p> | 20 </p> |
20 <p>This poll was published on {{ poll.start_date|date:"F d, Y" }}.</p> | 21 <p>This poll was published on {{ poll.start_date|date:"F d, Y" }}.</p> |
21 {% endblock %} | 22 {% endblock %} |