Make it possible to show HTML for the invalid parameter messages

So that they can include links.
This commit is contained in:
Christopher Baines 2020-11-28 19:36:26 +00:00
parent 8f702e5666
commit cb871530cf

View file

@ -251,9 +251,13 @@
(lambda (message)
`(strong
(@ (style "display: block;"))
,(string-append
"Error: " message)))
(filter string? messages))))))
"Error: "
,@(if (list? message)
message
(list message))))
(remove (lambda (v)
(eq? #f v))
messages))))))
'())
,@(if required? '((strong "Required. ")) '())
,@(if help-text