initial working state

This commit is contained in:
Ville Rantanen
2018-12-02 23:11:32 +02:00
commit 083915e69a
23 changed files with 837 additions and 0 deletions

25
templates/questions.html Normal file
View File

@@ -0,0 +1,25 @@
<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>