diff options
| author | unwox <me@unwox.com> | 2025-10-03 11:56:37 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2025-10-13 23:11:01 +0600 |
| commit | 3f5ade2e7a139bb4405437e8fc5546aafc7b05ef (patch) | |
| tree | 77c437958d74b591f11ec207d16749cf207a51e3 /pages/shop/_product/edit.fnl | |
| parent | f5a70e6a446e00969adb866ef2e2d10bf33bc4a8 (diff) | |
WIP shop
Diffstat (limited to 'pages/shop/_product/edit.fnl')
| -rw-r--r-- | pages/shop/_product/edit.fnl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pages/shop/_product/edit.fnl b/pages/shop/_product/edit.fnl index a8fd445..3e4f2f0 100644 --- a/pages/shop/_product/edit.fnl +++ b/pages/shop/_product/edit.fnl @@ -48,11 +48,11 @@ (fn content [form data errors authenticated?] [(HTML - [:div {:class "side"} + [:aside {} (templates.header "/shop" authenticated?)]) (HTML [:div {:class "content"} - [:div {:class "mb-1"} + [:div {:class "back"} [:a {:href (.. "/shop/" data.name)} "⟵ Обратно к товару"]] [:h2 {} "Редактировать товар"] (forms.render-form form data errors)])]) @@ -61,7 +61,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 data) has-errors? (not (lib.empty-table? errors))] (if has-errors? |
