feat: Mostly working user view with elementary html.

This commit is contained in:
2025-01-14 22:55:34 -05:00
parent 8842957cf3
commit cf28e52fa2
13 changed files with 297 additions and 12 deletions

View File

@@ -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")
) {
""
}
}
}
}
}