summaryrefslogtreecommitdiff
path: root/src/templates/templates/question-image.ftl
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates/templates/question-image.ftl')
-rw-r--r--src/templates/templates/question-image.ftl16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/templates/templates/question-image.ftl b/src/templates/templates/question-image.ftl
new file mode 100644
index 0000000..63f0616
--- /dev/null
+++ b/src/templates/templates/question-image.ftl
@@ -0,0 +1,16 @@
+<div class="imageQuestion question">
+ <#list question.answers?keys as answerid>
+ <#if selectedAnswerId?? && answerid == selectedAnswerId>
+ <a href="#" class="answer" id="${answerid}" onclick="selectAnswer(this)" class="selected"><img src="images/${question.id}-${answerid}.png" alt="${question.answers[answerid]!}" /></a>
+ <#else>
+ <a href="#" class="answer" id="${answerid}" onclick="selectAnswer(this)" class="answer"><img src="images/${question.id}-${answerid}.png" alt="${question.answers[answerid]!}" /></a>
+ </#if>
+ </#list>
+</div>
+
+<h1>${question.question}</h1>
+<#if question.description??>
+<p>
+ ${question.description}
+</p>
+</#if>