From cce6a211e80440fef84c4ac0e007cc33ea929946 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Thu, 20 Nov 2025 14:09:29 +0100 Subject: Add nutrient target front-end validation. --- formlets.rkt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'formlets.rkt') 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) )) -- cgit v1.2.3