Files
abot/templates/questions.html
2018-12-02 23:11:32 +02:00

26 lines
799 B
HTML

<div id="questions">
{% for question in form.questions %}
<div class = "question">
<h2>{{ question.name|safe }}</h2>
{% for choice in question.choices %}
<div>
<input type="radio" name="QC{{ question.index }}" value="{{ choice|safe }}" />
<label>{{ choice|safe }}</label>
</div>
{% endfor %}
{% for choice in question.multichoices %}
<div>
<input type="checkbox" name="QM{{ question.index }}" value="{{ choice|safe }}" />
<label>{{ choice|safe }}</label>
</div>
{% endfor %}
{% if question.open_question %}
<div>
<textarea name="QO{{ question.index }}" rows="5"></textarea>
</div>
{% endif %}
</div>
{% endfor %}
</div>