feat: Sets up ci workflows

This commit is contained in:
2025-01-24 20:19:43 -05:00
parent 000f8ce16b
commit d1e2f37629
16 changed files with 200 additions and 73 deletions

View File

@@ -104,11 +104,11 @@ struct PurchaseOrderForm: HTML, Sendable {
if let purchaseOrder, let createdAt = purchaseOrder.createdAt {
div(.class("row")) {
label(.class("label col-2")) { "Created:" }
h3(.class("col-2")) { dateFormatter.string(from: createdAt) }
h3(.class("col-2")) { dateFormatter.string(createdAt) }
if let updatedAt = purchaseOrder.updatedAt {
div(.class("col-1")) {}
label(.class("label col-2")) { "Updated:" }
h3(.class("col-2")) { dateFormatter.string(from: updatedAt) }
h3(.class("col-2")) { dateFormatter.string(updatedAt) }
}
}
}

View File

@@ -25,9 +25,9 @@ struct UserDetail: HTML, Sendable {
}
div(.class("row")) {
span(.class("label col-2")) { "Created:" }
span(.class("date col-4")) { dateFormatter.formattedDate(user.createdAt) }
span(.class("date col-4")) { dateFormatter.string(user.createdAt) }
span(.class("label col-2")) { "Updated:" }
span(.class("date col-4")) { dateFormatter.formattedDate(user.updatedAt) }
span(.class("date col-4")) { dateFormatter.string(user.updatedAt) }
}
div(.class("btn-row user-buttons")) {
button(