diff options
| author | Marius Peter <dev@marius-peter.com> | 2025-11-24 15:44:58 +0100 |
|---|---|---|
| committer | Marius Peter <dev@marius-peter.com> | 2025-11-24 15:44:58 +0100 |
| commit | b4b113796455b85389df1c826f6e7ec93e804001 (patch) | |
| tree | da3f143888cf883dd1f109962c84cf58a74e523f /formlets.rkt | |
| parent | 507844a30cbbdaf166a2fd56c9a6e4985c7d7c97 (diff) | |
Add French name to nutrient model.
Diffstat (limited to 'formlets.rkt')
| -rw-r--r-- | formlets.rkt | 4 |
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)))]) |