summaryrefslogtreecommitdiff
path: root/pages/shop/_product/edit.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'pages/shop/_product/edit.fnl')
-rw-r--r--pages/shop/_product/edit.fnl10
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)} "⟵ Обратно к товару"]]