[Racket] Ferti hydroponic nutrient solver, redux.
Add nutrient target front-end validation.
formlets.rkt
@@ -57,7 +57,7 @@
57
57
(define number-input
58
58
(input #:type "number"
59
59
#:attributes
60
Removed:
`((class "form-control") [id ,(number->string id)] [step "1"] [placeholder ,profile])))
60
Added:
`((class "form-control") [id ,(number->string id)] [min "0"] [max "100"] [step "1"] [placeholder ,profile])))
61
61
(define input-label
62
62
`(label ((for ,(number->string id)
63
63
))