From 297641ee2da93b3e3dfb2f22477c0fa9f903de47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Kr=C4=8Dek?= Date: Tue, 24 Jun 2025 17:30:34 +0200 Subject: [PATCH] Disable button if not all conditions are satisfied --- .../private/creator/steps/StepOverview.svelte | 77 ++++++++++++------- 1 file changed, 48 insertions(+), 29 deletions(-) diff --git a/src/routes/private/creator/steps/StepOverview.svelte b/src/routes/private/creator/steps/StepOverview.svelte index ed4350b..34cb497 100644 --- a/src/routes/private/creator/steps/StepOverview.svelte +++ b/src/routes/private/creator/steps/StepOverview.svelte @@ -1,43 +1,62 @@ -
-

Event Overview

- +
+

Event Overview

+
    +
  • Name: {new_event.name}
  • +
  • Date: {new_event.date}
  • +
  • Description: {new_event.description}
  • +
-
-

Email Preview

-
Subject: {subject}
-
-
{body}
-
+
+

Email Preview

+
Subject: {subject}
+
+ +
{body}
+
-
-

Participants ({participants.length})

-
    - {#each participants.slice(0, 10) as p} -
  • - {p.name} {p.surname} - - {p.email} -
  • - {/each} -
-

Note: Only the first 10 participants are shown.

+
+

Participants ({participants.length})

+
    + {#each participants.slice(0, 10) as p} +
  • + {p.name} {p.surname} + + {p.email} +
  • + {/each} +
+

Note: Only the first 10 participants are shown.

\ No newline at end of file + Generate QR codes and send + + +
+ {#if !new_event?.name} +

Please provide an event name before proceeding.

+ {/if} + {#if !participants?.length} +

Please add at least one participant before proceeding.

+ {/if} + {#if !subject} +

Please provide an email subject before proceeding.

+ {/if} + {#if !body} +

Please provide an email body before proceeding.

+ {/if} +