31 lines
950 B
HTML
31 lines
950 B
HTML
<div id="questions">
|
|
{% for question in form.questions %}
|
|
|
|
{% if question.autoformat %}
|
|
<div class = "question autoformat">
|
|
<h2>{{ question.name|safe }}</h2>
|
|
{% else %}
|
|
<div class = "question">
|
|
{{ question.name|safe }}
|
|
{% endif %}
|
|
{% 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>
|