diff options
author | Tim <contact@bytim.eu> | 2025-05-13 23:07:00 +0200 |
---|---|---|
committer | Tim <contact@bytim.eu> | 2025-05-13 23:07:00 +0200 |
commit | 587976b8a16b884ccd7b7dba9ff7209772d395ce (patch) | |
tree | 61ff6d127f060152eaba107d51002b8599389858 /src/chef/pages/admin.clj | |
parent | 58906c635ad0ea2028f99997cb673ef40a2ea2bb (diff) | |
download | chef-587976b8a16b884ccd7b7dba9ff7209772d395ce.tar.xz chef-587976b8a16b884ccd7b7dba9ff7209772d395ce.zip |
Add basic structure for category settings
Diffstat (limited to 'src/chef/pages/admin.clj')
-rw-r--r-- | src/chef/pages/admin.clj | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/chef/pages/admin.clj b/src/chef/pages/admin.clj index 3e2b0a1..9aaade3 100644 --- a/src/chef/pages/admin.clj +++ b/src/chef/pages/admin.clj @@ -3,9 +3,29 @@ [hiccup2.core :as html] [ring.util.response :as ruresp])) +(defn- render [] + (cutils/gen-page "chef - Admin" + [:h1 "chef - Admin"] + [:h2 "Kategorien"] + ;;TODO: add delete icons to non-root categories + [:ul + [:li + [:p {:style {:display :inline-block}} "Startseite"] + [:p {:style {:display :inline-block + :margin-left "1em" + :margin-right "1em"}} "->"] + [:input {:type :text :placeholder "Frage" + :style {:display :inline-block + :width :auto}}] ; TODO: only show when category has children + [:img {:src "/static/icons/plus.svg" :height "30em" + :style {:vertical-align :middle + :margin-left "1em"}}]]] + [:h2 "Rezepte"] + [:i "Coming soon..."])) + (defn handler [req] (cutils/auth-only req - (-> (cutils/gen-page "chef - Dashboard" [:i "Coming soon..."]) + (-> (render) html/html str ruresp/response))) |