diff options
| author | Marius Peter <dev@marius-peter.com> | 2025-11-20 14:09:29 +0100 |
|---|---|---|
| committer | Marius Peter <dev@marius-peter.com> | 2025-11-20 14:09:29 +0100 |
| commit | cce6a211e80440fef84c4ac0e007cc33ea929946 (patch) | |
| tree | 4e100a03aee4deae5f7a7deeff9f43df9f1b3970 | |
| parent | f2c2470d325099e845102229c0bc20d1ce8040e0 (diff) | |
Add nutrient target front-end validation.
| -rw-r--r-- | formlets.rkt | 2 |
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) )) |