diff --git a/apps/web/src/routes/cards/new/+page.svelte b/apps/web/src/routes/cards/new/+page.svelte
index e6973bc..159a1ca 100644
--- a/apps/web/src/routes/cards/new/+page.svelte
+++ b/apps/web/src/routes/cards/new/+page.svelte
@@ -19,6 +19,7 @@
import ImageOcclusionEditor from '$lib/components/ImageOcclusionEditor.svelte';
import ClozeCardForm from '$lib/components/ClozeCardForm.svelte';
import MultipleChoiceCardForm from '$lib/components/MultipleChoiceCardForm.svelte';
+ import AudioUploadField from '$lib/components/AudioUploadField.svelte';
import CardSurface from '$lib/components/CardSurface.svelte';
type DeckLite = { id: string; name: string };
@@ -33,6 +34,7 @@
let imageRef = $state('');
let maskRegionsJson = $state('[]');
let answer = $state('');
+ let aliases = $state('');
let audioFileRef = $state('');
let saving = $state(false);
let previewFlipped = $state(false);
@@ -119,6 +121,7 @@
fields = { image_ref: imageRef, mask_regions: maskRegionsJson };
} else if (cardType === 'typing') {
fields = { front: front.trim(), answer: answer.trim() };
+ if (aliases.trim()) fields.aliases = aliases.trim();
} else if (cardType === 'multiple-choice') {
const distractors = mcOptions
.filter((_, i) => i !== mcCorrectIdx)
@@ -223,21 +226,23 @@
placeholder={t('card_new.answer_placeholder')}
class="input mono"
>
- Kommagetrennte Aliase erlaubt: Paris, Paris (Frankreich)
+
{:else if cardType === 'audio-front'}