Mes devoirs - Classeo
{#if error}
{error}
{/if} {#if duplicateWarnings.length > 0}
Duplication effectuée avec avertissements :
    {#each duplicateWarnings as w}
  • {getClassName(w.classId)} : {w.warning}
  • {/each}
{/if}
{#if isLoading}

Chargement des devoirs...

{:else if homeworks.length === 0}
📚 {#if searchTerm}

Aucun résultat

Aucun devoir ne correspond à votre recherche

{:else}

Aucun devoir

Commencez par créer votre premier devoir

{/if}
{:else}
{#each homeworks as hw (hw.id)}

{hw.title}

{#if hw.hasRuleException} {:else if hw.hasRuleOverride} {/if} {hw.status === 'published' ? 'Publié' : 'Supprimé'}
🏫 {hw.className ?? getClassName(hw.classId)} 📖 {hw.subjectName ?? getSubjectName(hw.subjectId)} 📅 {formatDate(hw.dueDate)}
{#if hw.description}

{hw.description}

{/if} {#if hw.status === 'published'}
{/if}
{/each}
{/if}
{#if showCreateModal} {/if} {#if showEditModal && editHomework} {/if} {#if showDeleteModal && homeworkToDelete} {/if} {#if showDuplicateModal && homeworkToDuplicate} {/if} {#if showRuleWarningModal && ruleWarnings.length > 0} {/if} {#if showRuleBlockedModal && ruleBlockedWarnings.length > 0} {/if} {#if showExceptionModal && exceptionWarnings.length > 0} { showExceptionModal = false; exceptionWarnings = []; }} isSubmitting={isSubmittingException} /> {/if} {#if showJustificationModal && justificationHomework} {/if}