Mercurial > public > sg101
diff gpp/templates/polls/poll_vote.html @ 1:dbd703f7d63a
Initial import of sg101 stuff from private repository.
author | gremmie |
---|---|
date | Mon, 06 Apr 2009 02:43:12 +0000 |
parents | |
children | 6a5549c2efb5 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gpp/templates/polls/poll_vote.html Mon Apr 06 02:43:12 2009 +0000 @@ -0,0 +1,21 @@ +{% extends 'base.html' %} +{% block title %}Polls: {{ poll.question }}{% endblock %} +{% block custom_css %} +<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/polls.css" /> +{% endblock %} +{% block content %} +<h2>Poll</h2> +<h3>{{ poll.question }}</h3> +<form action="." method="post"> + <div class="poll-form"> + {{ vote_form.as_p }} + <input type="submit" value="Vote" /> + </div> +</form> +<p class="poll-nav"> +<a href="{{ poll.get_absolute_url }}">Poll Details</a> +| <a href="{% url polls.views.poll_results poll.id %}">View Results</a> +| <a href="{% url polls.views.poll_index %}">Poll Index</a> +</p> +<p>This poll was published on {{ poll.start_date|date:"F d, Y" }}.</p> +{% endblock %}