Spaces:
Sleeping
Sleeping
Commit
·
338c875
1
Parent(s):
bb001df
detail 2
Browse files
app/polls/templates/polls/detail.html
CHANGED
@@ -1 +1,12 @@
|
|
1 |
-
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<form action="{% url 'polls:vote' question.id %}" method="post">
|
2 |
+
{% csrf_token %}
|
3 |
+
<fieldset>
|
4 |
+
<legend><h1>{{ question.question_text }}</h1></legend>
|
5 |
+
{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
|
6 |
+
{% for choice in question.choice_set.all %}
|
7 |
+
<input type="radio" name="choice" id="choice{{ forloop.counter }}" value="{{ choice.id }}">
|
8 |
+
<label for="choice{{ forloop.counter }}">{{ choice.choice_text }}</label><br>
|
9 |
+
{% endfor %}
|
10 |
+
</fieldset>
|
11 |
+
<input type="submit" value="Vote">
|
12 |
+
</form>
|