diff options
| author | unwox <me@unwox.com> | 2025-09-07 20:22:47 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2025-09-07 22:16:39 +0600 |
| commit | 88d1725520afde9fe10a3daa1ad5c1c0a552f041 (patch) | |
| tree | 04069377658ac0b6c2fa903e0d2b42e8f2221031 /pages/shop/_product/edit.fnl | |
| parent | 4b0373bb42e21153f63d33f3546be9095d495f27 (diff) | |
small fixes
Diffstat (limited to 'pages/shop/_product/edit.fnl')
| -rw-r--r-- | pages/shop/_product/edit.fnl | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pages/shop/_product/edit.fnl b/pages/shop/_product/edit.fnl index 9465d94..7e7548d 100644 --- a/pages/shop/_product/edit.fnl +++ b/pages/shop/_product/edit.fnl @@ -1,4 +1,4 @@ -(import-macros {:compile-html <>} :macros) +(import-macros {:compile-html HTML} :macros) (local templates (require :templates)) (local {: product-form} (require :pages.shop.add)) (local forms (require :forms)) @@ -14,6 +14,10 @@ products.title, products.position, products.short_description, + products.recommendations, + products.year, + products.season, + products.region, products.stock, products.type, products.packaging, @@ -42,10 +46,10 @@ (error "empty data for insert SQL-statement")))) (fn content [form data errors authenticated?] - [(<> + [(HTML [:div {:class "side"} (templates.header "/shop" authenticated?)]) - (<> + (HTML [:div {:class "content"} [:div {:class "mb-1"} [:a {:href (.. "/shop/" data.name)} "⟵ Обратно к товару"]] |
