Ticket #4873: poll_detail.2.html
File poll_detail.2.html, 446 bytes (added by , 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> |