feat: Updates forms to use LabeledInput, style updates.

This commit is contained in:
2026-01-13 10:15:06 -05:00
parent 432533c940
commit df600a5471
12 changed files with 204 additions and 167 deletions

View File

@@ -80,8 +80,16 @@ struct RectangularSizeForm: HTML, Sendable {
input(.class("hidden"), .name("register"), .value(register))
input(.class("hidden"), .name("id"), .value(rectangularSizeID))
Input(id: "height", placeholder: "Height")
.attributes(.type(.number), .min("0"), .value(height), .required, .autofocus)
LabeledInput(
"Height",
.name("height"),
.type(.number),
.value(height),
.placeholder("8"),
.min("0"),
.required,
.autofocus
)
SubmitButton()
.attributes(.class("btn-block"))