Ticket #4875: poll_detail.html

File poll_detail.html, 446 bytes (added by John Shaffer <jshaffer2112@…>, 17 years ago)
Line 
1<h1>{{ object.question }}</h1>
2
3{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
4
5<form action="/polls/{{ object.id }}/vote/" method="post">
6{% for choice in object.choice_set.all %}
7 <input type="radio" name="choice" id="choice{{ forloop.counter }}" value="{{ choice.id }}" />
8 <label for="choice{{ forloop.counter }}">{{ choice.choice }}</label><br />
9{% endfor %}
10<input type="submit" value="Vote" />
11</form>
Back to Top