From 3f5ade2e7a139bb4405437e8fc5546aafc7b05ef Mon Sep 17 00:00:00 2001 From: unwox Date: Fri, 3 Oct 2025 11:56:37 +0600 Subject: WIP shop --- pages/shop/add.fnl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'pages/shop/add.fnl') diff --git a/pages/shop/add.fnl b/pages/shop/add.fnl index b5fa8de..01b83d6 100644 --- a/pages/shop/add.fnl +++ b/pages/shop/add.fnl @@ -68,12 +68,11 @@ (fn content [form data errors authenticated?] [(HTML - [:div {:class "side"} + [:aside {} (templates.header "/shop" authenticated?)]) (HTML [:div {:class "content"} - [:div {:class "mb-1"} - [:a {:href "/shop"} "⟵ Обратно к списку"]] + [:div {:class "back"} [:a {:href "/shop"} "⟵ Обратно к списку"]] [:h2 {} "Добавить товар"] (forms.render-form form data errors)])]) @@ -81,7 +80,7 @@ (if (not authenticated?) (values 302 {:Location "/shop"} "") (if request.form - (let [data (forms.convert-values-from-html product-form request.form db) + (let [data (forms.html-form->data product-form request.form db) errors (forms.validate-form product-form request.form) has-errors? (not (lib.empty-table? errors))] (if has-errors? -- cgit v1.2.3