highlights filters just a little bit better
This commit is contained in:
@@ -58,12 +58,13 @@
|
|||||||
[:code {:optional true} [:maybe {:decode/string strip} :string]]
|
[:code {:optional true} [:maybe {:decode/string strip} :string]]
|
||||||
[:name {:optional true} [:maybe {:decode/string strip} :string]]
|
[:name {:optional true} [:maybe {:decode/string strip} :string]]
|
||||||
[:group {:optional true} [:maybe {:decode/string strip} :string]]
|
[:group {:optional true} [:maybe {:decode/string strip} :string]]
|
||||||
[:select {:optional true :default "all"} [:maybe
|
[:select {:optional true :default "all"}
|
||||||
|
[:maybe
|
||||||
|
|
||||||
[:enum
|
[:enum
|
||||||
"" "all" "only-mine"]]]]]))
|
"" "all" "only-mine"]]]]]))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(defn filters [request]
|
(defn filters [request]
|
||||||
[:form {"hx-trigger" "change delay:500ms, keyup changed from:.hot-filter delay:1000ms"
|
[:form {"hx-trigger" "change delay:500ms, keyup changed from:.hot-filter delay:1000ms"
|
||||||
"hx-get" (bidi/path-for ssr-routes/only-routes
|
"hx-get" (bidi/path-for ssr-routes/only-routes
|
||||||
|
|||||||
@@ -89,14 +89,14 @@
|
|||||||
:id "check-number"
|
:id "check-number"
|
||||||
:class "hot-filter"
|
:class "hot-filter"
|
||||||
:value (:check-number (:query-params request))
|
:value (:check-number (:query-params request))
|
||||||
:placeholder "10001"
|
:placeholder "e.g., 10001"
|
||||||
:size :small}))
|
:size :small}))
|
||||||
(com/field {:label "Invoice #"}
|
(com/field {:label "Invoice #"}
|
||||||
(com/text-input {:name "invoice-number"
|
(com/text-input {:name "invoice-number"
|
||||||
:id "invoice-number"
|
:id "invoice-number"
|
||||||
:class "hot-filter"
|
:class "hot-filter"
|
||||||
:value (:invoice-number (:query-params request))
|
:value (:invoice-number (:query-params request))
|
||||||
:placeholder "10001"
|
:placeholder "e.g., ABC-456"
|
||||||
:size :small}))
|
:size :small}))
|
||||||
|
|
||||||
(com/field {:label "Amount"}
|
(com/field {:label "Amount"}
|
||||||
|
|||||||
Reference in New Issue
Block a user