{#if $user && $user.is_admin}
dispatch('delete')}>
{#if edit}
{:else}
{/if} {/if}
{#if false && response_history}
Historique :
Actuel
{#each response_history as history (history.id)}
{new Intl.DateTimeFormat('default', { year: 'numeric', month: 'numeric', day: 'numeric', hour: 'numeric', minute: 'numeric', second: 'numeric'}).format(new Date(history.time_submit))}
{/each}
{/if} {#if edit} {#if question.kind == 'text' || question.kind == 'int'}
Placeholder
{:else if question.kind} {#if !question.id} Veuillez enregistrer la question pour pouvoir ajouter des propositions. {:else} {#await question.getProposals()}
Chargement des choix …
{:then proposals}
{ dispatch("change"); }} /> {/await} {/if} {/if} {:else if question.kind == 'mcq' || question.kind == 'ucq'} {#await question.getProposals()}
Chargement des choix …
{:then proposals}
{ dispatch("change"); }} /> {/await} {:else if readonly}
{value}
{:else if question.kind == 'int'}
{ dispatch("change"); }} > {:else}
{ dispatch("change"); }} >
{/if} {#if survey && survey.corrected && response_history}
{/if}