progress on updating users
This commit is contained in:
@@ -206,7 +206,7 @@
|
||||
(com/icon-button {:hx-get (str (bidi/path-for ssr-routes/only-routes
|
||||
:user-edit-dialog
|
||||
:db/id (:db/id entity)))
|
||||
:hx-target "#modal-holder"
|
||||
:hx-target "#modal-content"
|
||||
:hx-swap "outerHTML"}
|
||||
svg/pencil)])
|
||||
:breadcrumbs [[:a {:href (bidi/path-for ssr-routes/only-routes
|
||||
@@ -265,7 +265,7 @@
|
||||
|
||||
(html-response
|
||||
(row* identity user {:flash? true})
|
||||
:headers {"hx-trigger" "closeModal"
|
||||
:headers {"hx-trigger" "modalclose"
|
||||
"hx-retarget" (format "#user-table tr[data-id=\"%d\"]" (:db/id user))})))
|
||||
|
||||
(defn user-edit-dialog [request]
|
||||
@@ -315,7 +315,8 @@
|
||||
[:div#form-errors [:span.error-content]]
|
||||
(com/button {:color :primary :type "submit"}
|
||||
"Save")]
|
||||
[:div])]]))))
|
||||
[:div])]])
|
||||
:headers {"hx-trigger" "modalopen"})))
|
||||
|
||||
(def key->handler
|
||||
(apply-middleware-to-all-handlers
|
||||
|
||||
Reference in New Issue
Block a user