From 6c0e44cb45dfb44091fe2d1890268578caee94ae Mon Sep 17 00:00:00 2001 From: fede Date: Thu, 18 Jun 2026 02:58:55 -0300 Subject: [PATCH] hecho skeleton de la interfaz --- front/src/routes/repuestos/+page.svelte | 12 +++- .../routes/repuestos/CrearRepuestoForm.svelte | 62 +++++++++++++++++-- 2 files changed, 68 insertions(+), 6 deletions(-) diff --git a/front/src/routes/repuestos/+page.svelte b/front/src/routes/repuestos/+page.svelte index bd8ba40..bcdd388 100644 --- a/front/src/routes/repuestos/+page.svelte +++ b/front/src/routes/repuestos/+page.svelte @@ -13,10 +13,13 @@ TableRow } from 'carbon-components-svelte'; import { Add, Edit, TrashCan } from 'carbon-icons-svelte'; + import CrearRepuestoForm from './CrearRepuestoForm.svelte'; let error = $state(''); let loading = $state(''); + let openCrear = $state(false); + const headers = [ { key: 'id', value: 'ID' }, { key: 'nombre', value: 'Nombre' }, @@ -31,7 +34,7 @@

Gestión de Repuestos

- +
{#if error} @@ -69,3 +72,10 @@ {/if} + + { + openCrear = false; + }} +> diff --git a/front/src/routes/repuestos/CrearRepuestoForm.svelte b/front/src/routes/repuestos/CrearRepuestoForm.svelte index 4bd10f6..953573d 100644 --- a/front/src/routes/repuestos/CrearRepuestoForm.svelte +++ b/front/src/routes/repuestos/CrearRepuestoForm.svelte @@ -1,9 +1,32 @@
{error} {/if} - - + + + + + + +
+
Aliases
+ +
+
+ {#each repuesto.aliases as _, index} + + {/each} +