summaryrefslogtreecommitdiff
path: root/src/chef/pages/admin.clj
diff options
context:
space:
mode:
Diffstat (limited to 'src/chef/pages/admin.clj')
-rw-r--r--src/chef/pages/admin.clj5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/chef/pages/admin.clj b/src/chef/pages/admin.clj
index 73cf127..83e5dbd 100644
--- a/src/chef/pages/admin.clj
+++ b/src/chef/pages/admin.clj
@@ -25,6 +25,11 @@
:hx-post (str "/api/admin/create-category"
(when (some? data) (str "?parent=" (:categories/id data))))
:hx-swap "none"}]
+ [:img {:src "/static/icons/trash.svg" :height "30em"
+ :style {:vertical-align :middle
+ :margin-left "1em"}
+ :hx-delete (str "/api/admin/delete-category/" (:categories/id data))
+ :hx-swap "none"}]
[:ul
(for [child children]
(render-category child (->> (sql/format {:select [:*]