| Intitulé | Date | {#if $user} {#if $user.is_admin}À corriger | {:else}Score | {/if} {/if}|
|---|---|---|---|---|
| Chargement des questionnaires … | ||||
| {survey.promo} | ||||
| categories[survey.id_category].expand = !categories[survey.id_category].expand} on:keypress={() => categories[survey.id_category].expand = !categories[survey.id_category].expand} > {#if categories[survey.id_category].expand} {:else} {/if} {categories[survey.id_category].label} {#if $user && $user.is_admin} {/if} | ||||
|
{#if !survey.shown}{/if}
{survey.title}
{#if survey.group}{survey.group}{/if}
{#if $user && survey.kind === "w" && survey.startAvailability() < Date.now()}
|
{#if survey.startAvailability() > Date.now()}
|
{:else}
|
{/if}
{#if $user}
{#if !survey.corrected && !$user.is_admin}
N/A | {:else}
{#await getScore(survey)}
{:then score}
{#if score.count !== undefined}
0}
class:badge={survey.corrected}
class:bg-danger={survey.corrected && score.count-score.corrected > 0}
class:bg-dark={survey.corrected && score.count-score.corrected <= 0}
title="{score.count-score.corrected}/{score.count}"
>
{#if score.count == 0 || score.corrected == 0 || survey.corrected}
{score.count-score.corrected}
{:else}
{Math.trunc((1-score.corrected/score.count)*100)} %
{/if}
{:else}
|
{/if}
{/if}
| Ajouter un questionnaire | ||||