inline HTML, result viewer

This commit is contained in:
Ville Rantanen
2018-12-04 20:58:24 +02:00
parent 1a8cc70914
commit 2910cc2186
10 changed files with 185 additions and 101 deletions

View File

@@ -1,8 +1,13 @@
<div id="questions">
{% for question in form.questions %}
<div class = "question">
<h2>{{ question.name|safe }}</h2>
{% 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 }}" />