(reorder_mode = !reorder_mode)} >{#if reorder_mode}{$t('editor.disable_reorder')}{:else}{$t( 'editor.enable_reorder' )}{/if}
setSelectedQuestion(-1)} >

{#if data.title} {@html data.title} {:else} {$t('editor.no_title')} {/if}

{#each data.questions as question, index}
{ setSelectedQuestion(index); }} bind:this={arr_of_cards[index]} > {#if reorder_mode}
(data.questions = swapArrayElements( data.questions, index, index - 1 ))} >
(data.questions = swapArrayElements( data.questions, index, index + 1 ))} >
{/if}

{#if question.question === ''} {$t('editor.no_title')} {:else} {@html question.question} {/if}

{#if question.image}
Not available`, allowHTML: true }} />
{/if} {#if question.type === QuizQuestionType.ABCD || question.type === QuizQuestionType.CHECK}
{#if Array.isArray(question.answers)} {#each question.answers as answer} {#if answer.answer === ''} {$t('editor.empty')} {:else} {answer.answer} {/if} {/each} {/if}
{:else if question.type === QuizQuestionType.RANGE}

All numbers between {question.answers.min_correct} and {question.answers.max_correct} are correct, where numbers between {question .answers.min} and {question.answers.max} can be selected.

{:else if question.type === QuizQuestionType.VOTING || question.type === QuizQuestionType.TEXT} {#if Array.isArray(question.answers)}
{#each question.answers as answer} {#if answer.answer === ''} {$t('editor.empty')} {:else} {answer.answer} {/if} {/each}
{/if} {:else if question.type === QuizQuestionType.SLIDE}

Some smart information on a slide

{:else if question.type === QuizQuestionType.ORDER}

Get thing's into the right order!

{:else}

Unknown Question Type (shouldn't happen)

{/if}
{/each}
{#if add_new_question_popup_open} {/if}