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

@@ -284,7 +284,7 @@ collision = Conflict
resolve = Resolve resolve = Resolve
no-profiles-assigned = No profiles assigned. no-profiles-assigned = No profiles assigned.
stock = Stock stock = Stock
sku = SKU sku = Stock number
currency = Currency currency = Currency
category = Category category = Category
no-category = No category no-category = No category

View File

@@ -284,7 +284,7 @@ collision = Konflikt
resolve = Vyriešiť resolve = Vyriešiť
no-profiles-assigned = Žiadne priradené profily. no-profiles-assigned = Žiadne priradené profily.
stock = Sklad stock = Sklad
sku = Kód (SKU) sku = Skladové číslo
currency = Mena currency = Mena
category = Kategória category = Kategória
no-category = Bez kategórie no-category = Bez kategórie

View File

@@ -103,6 +103,13 @@
</template> </template>
</div> </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"> <template x-if="current.in_stock">
<div class="space-y-2"> <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" <form method="post" action="/cart/add" hx-post="/cart/add" hx-swap="none" class="flex flex-wrap items-end gap-3"