diff --git a/app-admin/src/routes/items/+page.svelte b/app-admin/src/routes/items/+page.svelte index 6d7ea39..b2ea11a 100644 --- a/app-admin/src/routes/items/+page.svelte +++ b/app-admin/src/routes/items/+page.svelte @@ -137,74 +137,7 @@ {#if form?.message}
{@render details(item)}
- {/if} - {@render notes(problem, waiting)} -| Name | Type | Price | Stock | Duration | Status | ||||
|---|---|---|---|---|---|---|---|---|---|
|
- {@render thumbnail(item)}
+ {#if item.imageUrl}
+
|
- {@render typeBadge(item)} | -{@render price(item)} | +{item.type === 'item_with_time' ? 'Service' : item.type === 'bundle' ? 'Bundle' : 'Product'} | +{item.durations.length > 1 ? `from ${money.format(item.price)}` : money.format(item.price)} | {item.type === 'item' ? (item.stock ?? '∞') : '—'} | -{@render details(item)} | - {@render status(item, problem)} - {@render notes(problem, waiting)} + {#if item.type === 'item_with_time'} + {durationList(item)}{item.bufferMinutes ? ` + ${item.bufferMinutes} min get-ready` : ''}{(item.capacity ?? 1) > 1 ? ` · ${item.capacity} places` : ''} + {:else if item.type === 'bundle'} + {bundleList(item)} · {item.validMonths ? `valid ${item.validMonths} months` : 'no expiry'} + {:else}—{/if} + | ++ {#if problem} + Not on sale + {problem} + {:else} + {item.active ? 'Active' : 'Inactive'} + {/if} + {#if waiting} + {waiting === 1 ? '1 code has' : `${waiting} codes have`} sessions of this left to book — they can’t while it’s inactive. + {/if} |