diff --git a/src/lib/components/DeleteModal.svelte b/src/lib/components/DeleteModal.svelte new file mode 100644 index 0000000..3c346e8 --- /dev/null +++ b/src/lib/components/DeleteModal.svelte @@ -0,0 +1,115 @@ + + +{#if open && target} +
+{/if} + + diff --git a/src/lib/components/EditReservationModal.svelte b/src/lib/components/EditReservationModal.svelte new file mode 100644 index 0000000..52068ef --- /dev/null +++ b/src/lib/components/EditReservationModal.svelte @@ -0,0 +1,177 @@ + + +{#if open && reservation} + +{/if} + + diff --git a/src/lib/components/EditTourModal.svelte b/src/lib/components/EditTourModal.svelte new file mode 100644 index 0000000..e0c0fc3 --- /dev/null +++ b/src/lib/components/EditTourModal.svelte @@ -0,0 +1,162 @@ + + +{#if open && booking} + +{/if} + + diff --git a/src/lib/components/RentalCard.svelte b/src/lib/components/RentalCard.svelte index e025869..77e7423 100644 --- a/src/lib/components/RentalCard.svelte +++ b/src/lib/components/RentalCard.svelte @@ -7,18 +7,19 @@ rental, loading = false, onEdit, + onDelete, onClose }: { rental: any; loading?: boolean; onEdit: (id: number) => void; + onDelete: (id: number, label: string) => void; onClose: (id: number) => void; } = $props(); const customer = $derived(rental.customer as {name?: string, hotel?: string}); const items = $derived(rental.items as Array<{name: string, quantity?: number, code?: string}>); const pricing = $derived(rental.pricing as {type?: string}); - const guideName = $derived(rental.guideName as string | null); let elapsedTime = $state(''); let interval: ReturnType