WIP on htmx 4; change target from window to body (#60)
This commit is contained in:
@@ -13,7 +13,7 @@ let edit (model: EditUserModel) app =
|
||||
div [ _class "col-12" ] [
|
||||
h5 [ _class "my-3" ] [ txt app.PageTitle ]
|
||||
form [ _hxPost (relUrl app "admin/settings/user/save"); _method "post"; _class "container"
|
||||
_hxTarget "#user_panel"; _hxSwap $"{HxSwap.OuterHtml} show:top showTarget:window" ] [
|
||||
_hxTarget "#user_panel"; _hxSwap $"{HxSwap.OuterHtml} show:top showTarget:body" ] [
|
||||
antiCsrf app
|
||||
input [ _type "hidden"; _name "Id"; _value model.Id ]
|
||||
div [ _class "row" ] [
|
||||
@@ -188,7 +188,7 @@ let userList (model: WebLogUser list) app =
|
||||
]
|
||||
List.map userDetail model
|
||||
|> div [ _class "container g-0"; hxInherited (_hxTarget "#user_panel")
|
||||
hxInherited (_hxSwap $"{HxSwap.OuterHtml} show:top showTarget:window") ]
|
||||
hxInherited (_hxSwap $"{HxSwap.OuterHtml} show:top showTarget:body") ]
|
||||
]
|
||||
]
|
||||
|> List.singleton
|
||||
|
||||
Reference in New Issue
Block a user