✨ Implemented in Public-Quiz-View
This commit is contained in:
@@ -169,6 +169,17 @@
|
||||
and {question.answers.max_correct} are correct, where numbers between {question
|
||||
.answers.min} and {question.answers.max} can be selected.
|
||||
</p>
|
||||
{:else if question.type === QuizQuestionType.VOTING}
|
||||
<div class="grid grid-cols-2 gap-4 m-4 p-6">
|
||||
{#each question.answers as answer, index_answer}
|
||||
<div class="p-1 rounded-lg py-4 dark:bg-gray-500 bg-gray-300">
|
||||
<h4 class="text-center">
|
||||
{quiz.questions[index_question].answers[index_answer]
|
||||
.answer}
|
||||
</h4>
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</CollapsSection>
|
||||
|
||||
Reference in New Issue
Block a user