summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Peter <dev@marius-peter.com>2025-12-10 21:09:24 +0100
committerMarius Peter <dev@marius-peter.com>2025-12-10 21:09:24 +0100
commitdd36c04ae810558b61169220208ab2731973d1ae (patch)
tree50287faabcdf213936725720705c9e8773f94e16
parent0d152b58ca572d746d226b5e1e193ccedf11b925 (diff)
Update view.
-rw-r--r--views.rkt8
1 files changed, 5 insertions, 3 deletions
diff --git a/views.rkt b/views.rkt
index bd6b3b9..d48395c 100644
--- a/views.rkt
+++ b/views.rkt
@@ -240,7 +240,8 @@
,table)))
(define (show-fertilizer-page fp)
- (define title (fertilizer-product-name fp))
+ (define product-name (fertilizer-product-name fp))
+ (define brand-name (fertilizer-brand-name fp))
(define nutrient-values (fertilizer-product-values fp))
(define table
`(table ((class "table"))
@@ -250,8 +251,9 @@
`(tr (td ,(nutrient-french-name nutrient))
(td ((class "text-end font-monospace")) ,(round 2 quantity)))))))
- (page-template title
- `((h1 ((class "display-1 mb-3")) ,title)
+ (page-template product-name
+ `((h1 ((class "display-1 mb-3")) ,(or brand-name "Intrant générique"))
+ (h5 ((class "display-5 mb-3")) ,product-name)
(a ((class "btn btn-danger")
[href ,(format "/ferti/fertilizers/destroy/~a" (fertilizer-product-id fp))])
"Supprimer")
Copyright 2019--2026 Marius PETER