feat: Working on adding updates to project form, it's currently not loading an existing project.

This commit is contained in:
2026-01-05 17:04:25 -05:00
parent 4c8a23be94
commit fc12e47b5c
9 changed files with 178 additions and 35 deletions

View File

@@ -61,6 +61,7 @@ struct RoomsView: HTML, Sendable {
.class("badge badge-outline badge-success badge-xl"))
}
td {}
td {}
}
}
}
@@ -87,10 +88,11 @@ struct RoomsView: HTML, Sendable {
Number(room.registerCount)
}
td {
Row {
div(.class("flex justify-end space-x-6")) {
TrashButton()
.attributes(
.hx.delete(route: .project(.detail(room.projectID, .rooms(.delete(id: room.id))))),
.hx.delete(
route: .project(.detail(room.projectID, .rooms(.delete(id: room.id))))),
.hx.target("closest tr"),
.hx.confirm("Are you sure?")
)