automatically set scheduled payment

This commit is contained in:
2024-03-24 14:26:30 -07:00
parent 6bd475e86d
commit ede4d756af
4 changed files with 170 additions and 55 deletions

View File

@@ -156,12 +156,14 @@
(dissoc :size))])
(defn date-input- [{:keys [size] :as params}]
[:div.shrink
[:div.shrink {:x-data (hx/json {:value (:value params)})}
[:input
(-> params
(update :class (fnil hh/add-class "") default-input-classes)
(assoc :x-modelable "value")
(assoc :type "text")
(assoc "_" (hiccup/raw "init initDatepicker(me)"))
(assoc "@change" "value = $event.target.value; console.log(value)")
(assoc "hx-on" (hiccup/raw "changeDate: htmx.trigger(this, \"change\")
htmx:beforeCleanupElement: this.dp.destroy()"))
(update :class #(str % (use-size size) " w-full"))