Upload — Mangalord

Create manga

{#if !session.loaded}

Loading…

{:else if !session.user}

Sign in to upload a manga.

{:else}

Manga details

Authors
{#each mangaAuthors as a (a)} removeAuthor(a)} /> {/each}
{ if (e.key === 'Enter') { e.preventDefault(); addAuthor(); } }} placeholder="Add author" maxlength="200" data-testid="manga-author-input" />
Genres
{#each genres as g (g.id)} {/each}
Alternative titles
{#each mangaAltTitles as t (t)} removeAltTitle(t)} /> {/each}
{ if (e.key === 'Enter') { e.preventDefault(); addAltTitle(); } }} placeholder="Add alternative title" maxlength="200" data-testid="manga-alt-input" />

Initial chapters (optional)

{#if stagedChapters.length === 0}

You can skip this — chapters can also be added later from the manga's page.

{:else} {#if !allChapterNumbersUnique} {/if} {#if !allChaptersHavePages && stagedChapters.length > 0} {/if} {/if}
{#if success}

{success}

{/if} {#if mangaError} {/if}
{/if}