comparison gpp/templates/polls/poll_vote.html @ 447:8f46ba2f1b81

For #219, rework the polls views for a better flow. Added some tests for the views.
author Brian Neal <bgneal@gmail.com>
date Sat, 25 Jun 2011 23:23:20 +0000
parents 1f139de929c4
children
comparison
equal deleted inserted replaced
446:72ef6e809f79 447:8f46ba2f1b81
22 <input type="submit" value="Vote" /> 22 <input type="submit" value="Vote" />
23 </div> 23 </div>
24 </form> 24 </form>
25 {% endif %} 25 {% endif %}
26 <p class="poll-nav"> 26 <p class="poll-nav">
27 <a href="{{ poll.get_absolute_url }}">Poll Details</a> 27 <a href="{{ poll.get_absolute_url }}">View results</a>
28 | <a href="{% url 'polls-results' poll.id %}">View Results</a> 28 | <a href="{% url 'polls-main' %}">All polls</a>
29 | <a href="{% url 'polls-main' %}">All Polls</a>
30 </p> 29 </p>
31 <p>This poll was published on {{ poll.start_date|date:"F d, Y" }}.</p> 30 <p>This poll was published on {{ poll.start_date|date:"F d, Y" }}.</p>
32 {% endblock %} 31 {% endblock %}