From 9d007b6af33ad3fc37702ad2dc0d1314ef38c5a6 Mon Sep 17 00:00:00 2001 From: Galindo97 Date: Thu, 8 Jan 2026 17:01:16 -0600 Subject: [PATCH] feat: implement create/edit dialog for class management with form validation and data loading --- .../classes/create-edit-dialog.svelte | 520 ++++++++++++++++++ 1 file changed, 520 insertions(+) create mode 100644 frontend/src/lib/components/dashboard/classes/create-edit-dialog.svelte diff --git a/frontend/src/lib/components/dashboard/classes/create-edit-dialog.svelte b/frontend/src/lib/components/dashboard/classes/create-edit-dialog.svelte new file mode 100644 index 00000000..6f9572cd --- /dev/null +++ b/frontend/src/lib/components/dashboard/classes/create-edit-dialog.svelte @@ -0,0 +1,520 @@ + + + + + + {title} + + {isEdit ? 'Modifica los datos de la clase' : 'Completa los datos para crear una nueva clase'} + + + +
+ + {#if error} +
+ {error} +
+ {/if} + + + {#if companyStore.activeCompany} +
+
+ + + + +
+

+ {companyStore.activeCompany.name} +

+

+ ID: {companyStore.activeCompany.id} +

+
+
+
+ {/if} + + +
+ + {#if loadingClients} +
+
+ Cargando clientes... +
+ {:else if clients.length > 0} + + {:else} +
+ No hay clientes disponibles +
+ {/if} +
+ + +
+ + +
+ + +
+
+ +