feat: Mostly working user view with elementary html.
This commit is contained in:
@@ -14,7 +14,7 @@ struct UserTable: HTML {
|
||||
tr {
|
||||
th { "Username" }
|
||||
th { "Email" }
|
||||
th { ToggleFormButton() }
|
||||
th(.style("width: 50px;")) { ToggleFormButton() }
|
||||
}
|
||||
}
|
||||
tbody {
|
||||
@@ -33,7 +33,16 @@ struct UserTable: HTML {
|
||||
tr {
|
||||
td { user.username }
|
||||
td { user.email }
|
||||
td { "Fix me." }
|
||||
td {
|
||||
button(
|
||||
.hx.get("/users/\(user.id.uuidString)"),
|
||||
.hx.target("#float"),
|
||||
.hx.swap(.outerHTML),
|
||||
.class("btn-detail")
|
||||
) {
|
||||
"〉"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user