skladove cislo in frontend from now on

This commit is contained in:
Priec
2026-07-29 15:55:36 +02:00
parent e24ad0de1b
commit a74b370d9d
3 changed files with 9 additions and 2 deletions

View File

@@ -103,6 +103,13 @@
</template>
</div>
{# Stock number of the selected option; switching the picker updates it. #}
<template x-if="current.sku">
<p class="text-sm text-on-surface/60 dark:text-on-surface-dark/60">
{{ t(key="sku", lang=lang | default(value='sk')) }}: <span x-text="current.sku"></span>
</p>
</template>
<template x-if="current.in_stock">
<div class="space-y-2">
<form method="post" action="/cart/add" hx-post="/cart/add" hx-swap="none" class="flex flex-wrap items-end gap-3"