From e3c27b304f38e9b0af92a782160217a1bb39061a Mon Sep 17 00:00:00 2001 From: Shaheed Azaad <4594-shaheedazaad@users.noreply.gitlab.pavlovia.org> Date: Mon, 14 Jul 2025 00:53:24 +0200 Subject: [PATCH] fixed create form --- src/routes/experiment/create/+page.svelte | 125 ++++++++++------------ 1 file changed, 58 insertions(+), 67 deletions(-) diff --git a/src/routes/experiment/create/+page.svelte b/src/routes/experiment/create/+page.svelte index eb0b0f7..e54771d 100644 --- a/src/routes/experiment/create/+page.svelte +++ b/src/routes/experiment/create/+page.svelte @@ -1,14 +1,15 @@
@@ -57,45 +59,34 @@
- - - Name - - - - - - - Description - - - - - - -
- - Multiplayer -
-
- -
- - - Type - - - {$formData.type || 'Select a type'} - - - jsPsych - PsychoJS - - - - - - Create +
+ + + {#if $errors.name}{$errors.name[0]}{/if} +
+
+ + + {#if $errors.description}{$errors.description[0]}{/if} +
+
+ + +
+
+ + + + {triggerContent} + + + jsPsych + PsychoJS + + + {#if $errors.type}{$errors.type[0]}{/if} +
+