Brand name can be an empty string.

This is not clean, but is required for now because of the (canonical-name, brand-name) database uniqueness constraint.

Commit
2a1c552c44411e7f044bbd1585390cde31239043
Author
Marius Peter <dev@marius-peter.com>
Author date
Committer
Marius Peter <dev@marius-peter.com>
Committer date
views.rkt
index 7dd6dbd2..ccafb99a 100644..100644
@@ -286,8 +286,9 @@
286 286 (a ((class "btn btn-danger") [href ,(format "/ferti/fertilizers/~a/destroy" id)])
287 287 "Supprimer")))
288 288 (page-template product-name
289 Removed: `((h1 ((class "display-1 mb-3")) ,(or brand-name "Intrant générique"))
290 Removed: (h5 ((class "display-5 mb-3")) ,product-name)
289 Added: `((h1 ((class "display-1 mb-3")) ,product-name)
290 Added: (h5 ((class "display-5 mb-3"))
291 Added: ,(if (non-empty-string? brand-name) brand-name "Intrant générique"))
291 292 ,button-group
292 293 ,table)))
293 294