summaryrefslogtreecommitdiffstats
path: root/theme/templates/includes/book/quiz.html
diff options
context:
space:
mode:
Diffstat (limited to 'theme/templates/includes/book/quiz.html')
-rw-r--r--theme/templates/includes/book/quiz.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/theme/templates/includes/book/quiz.html b/theme/templates/includes/book/quiz.html
index bcb3e1b..939d5c0 100644
--- a/theme/templates/includes/book/quiz.html
+++ b/theme/templates/includes/book/quiz.html
@@ -6,8 +6,9 @@
{% autoescape false %}{{ section.content }}{% endautoescape %}
</div>
+{% for quiz in section.quiz %}
<div class="quiz">
- {% autoescape false %}{{ section.quiz.base }}{% endautoescape %}
+ {% autoescape false %}{{ quiz.base }}{% endautoescape %}
<div class="alert alert-success hidden">
<b>Correct!</b>
@@ -15,13 +16,14 @@
<div class="alert alert-danger error-message hidden">
<p><b>Not quite!</b></p>
- {% autoescape false %}{{ section.quiz.feedback }}{% endautoescape %}
+ {% autoescape false %}{{ quiz.feedback }}{% endautoescape %}
</div>
</div>
<div class="hidden quiz-answers">
- {% autoescape false %}{{ section.quiz.solution }}{% endautoescape %}
+ {% autoescape false %}{{ quiz.solution }}{% endautoescape %}
</div>
+{% endfor %}
<div class="btn-group btn-group-justified">
<a href="#" class="btn btn-default action-submit">Submit</a>