summaryrefslogtreecommitdiff
path: root/formlets.rkt
diff options
context:
space:
mode:
authorMarius Peter <dev@marius-peter.com>2025-11-24 15:44:58 +0100
committerMarius Peter <dev@marius-peter.com>2025-11-24 15:44:58 +0100
commitb4b113796455b85389df1c826f6e7ec93e804001 (patch)
treeda3f143888cf883dd1f109962c84cf58a74e523f /formlets.rkt
parent507844a30cbbdaf166a2fd56c9a6e4985c7d7c97 (diff)
Add French name to nutrient model.
Diffstat (limited to 'formlets.rkt')
-rw-r--r--formlets.rkt4
1 files changed, 2 insertions, 2 deletions
diff --git a/formlets.rkt b/formlets.rkt
index d96f374..ce92129 100644
--- a/formlets.rkt
+++ b/formlets.rkt
@@ -22,11 +22,11 @@
(input #:type "number"
#:attributes `((class "form-control") [id ,(number->string id)]
[step "0.1"]
- [placeholder ,(nutrient-name nutrient)])))
+ [placeholder ,(nutrient-french-name nutrient)])))
(define input-label
`(label ((for ,(number->string id)
))
- ,(nutrient-name nutrient)))
+ ,(nutrient-french-name nutrient)))
(formlet (#%# (div ((class "form-floating mb-3")) ,{=> number-input nutrient-value-b} ,input-label))
(let ([nutrient-value (string->number (bytes->string/utf-8
(binding:form-value nutrient-value-b)))])
Copyright 2019--2026 Marius PETER