Use correct error classes on Bootstrap3 module.
This commit is contained in:
parent
c36dbf9302
commit
51fbc2a57b
@ -157,7 +157,7 @@ renderBootstrap3 formLayout aform fragment = do
|
|||||||
#{fragment}
|
#{fragment}
|
||||||
^{formFailureWidget res}
|
^{formFailureWidget res}
|
||||||
$forall view <- views
|
$forall view <- views
|
||||||
<div .form-group :fvRequired view:.required :not $ fvRequired view:.optional :has $ fvErrors view:.error>
|
<div .form-group :fvRequired view:.required :not $ fvRequired view:.optional :has $ fvErrors view:.has-error>
|
||||||
$case formLayout
|
$case formLayout
|
||||||
$of BootstrapBasicForm
|
$of BootstrapBasicForm
|
||||||
$if fvId view /= bootstrapSubmitId
|
$if fvId view /= bootstrapSubmitId
|
||||||
@ -188,7 +188,7 @@ formFailureWidget :: FormResult a -> WidgetT site IO ()
|
|||||||
formFailureWidget (FormFailure reasons) =
|
formFailureWidget (FormFailure reasons) =
|
||||||
[whamlet|
|
[whamlet|
|
||||||
$forall reason <- reasons
|
$forall reason <- reasons
|
||||||
<div .alert .alert-error>#{reason}
|
<div .alert .alert-danger>#{reason}
|
||||||
|]
|
|]
|
||||||
formFailureWidget _ = return ()
|
formFailureWidget _ = return ()
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user