summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Peter <dev@marius-peter.com>2025-11-20 14:09:29 +0100
committerMarius Peter <dev@marius-peter.com>2025-11-20 14:09:29 +0100
commitcce6a211e80440fef84c4ac0e007cc33ea929946 (patch)
tree4e100a03aee4deae5f7a7deeff9f43df9f1b3970
parentf2c2470d325099e845102229c0bc20d1ce8040e0 (diff)
Add nutrient target front-end validation.
-rw-r--r--formlets.rkt2
1 files changed, 1 insertions, 1 deletions
diff --git a/formlets.rkt b/formlets.rkt
index d0baffc..f3f9c96 100644
--- a/formlets.rkt
+++ b/formlets.rkt
@@ -57,7 +57,7 @@
(define number-input
(input #:type "number"
#:attributes
- `((class "form-control") [id ,(number->string id)] [step "1"] [placeholder ,profile])))
+ `((class "form-control") [id ,(number->string id)] [min "0"] [max "100"] [step "1"] [placeholder ,profile])))
(define input-label
`(label ((for ,(number->string id)
))
Copyright 2019--2026 Marius PETER