initial working state
This commit is contained in:
25
templates/questions.html
Normal file
25
templates/questions.html
Normal 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>
|
||||
Reference in New Issue
Block a user