feat: adds next route to login.

This commit is contained in:
2026-01-04 09:30:14 -05:00
parent a61c772f7b
commit f159c3ab75
11 changed files with 2326 additions and 56 deletions

View File

@@ -17,7 +17,7 @@ struct RoomForm: HTML, Sendable {
// TODO: Use htmx here.
form(
.method(.post),
.action(route: .room(.index(projectID)))
.action(route: .project(.detail(projectID, .rooms(.index))))
) {
div {
label(.for("name")) { "Name:" }
@@ -45,7 +45,7 @@ struct RoomForm: HTML, Sendable {
div(.class("space-x-4")) {
CancelButton()
.attributes(
.hx.get(route: .room(.form(projectID, dismiss: true))),
.hx.get(route: .project(.detail(projectID, .rooms(.form(dismiss: true))))),
.hx.target("#roomForm"),
.hx.swap(.outerHTML)
)