Another admin page

This commit is contained in:
2023-10-31 12:44:10 -07:00
parent f61aca26cd
commit 7796e34834
11 changed files with 238 additions and 41 deletions

View File

@@ -155,7 +155,7 @@
(dissoc :size))])
(defn date-input- [{:keys [size] :as params}]
[:div
[:div.shrink
[:input
(-> params
(update :class (fnil hh/add-class "") default-input-classes)
@@ -163,7 +163,7 @@
(assoc "_" (hiccup/raw "init initDatepicker(me)"))
(assoc "hx-on" (hiccup/raw "changeDate: htmx.trigger(this, \"change\")
htmx:beforeCleanupElement: this.dp.destroy()"))
(update :class #(str % (use-size size)))
(update :class #(str % (use-size size) " w-full"))
(dissoc :size))]])