Show field errors in profile form

This commit is contained in:
Saku Laesvuori 2023-10-31 18:47:50 +02:00
parent 1276ffe020
commit bd1bcf51e9
Signed by: slaesvuo
GPG Key ID: 257D284A2A1D3A32
1 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,8 @@ profileForm ProfilePageUser {..} extraHtml = do
<label for="#{fvId}">
^{fvLabel}
^{fvInput}
$maybe err <- fvErrors
<div class=".errors">#{err}
|]
widget = [whamlet|
#{extraHtml}