Support Bootstrap 2.0 on renderBootstrap.

This commit is contained in:
Felipe Lessa 2012-02-16 12:11:57 -02:00
parent e1066b622a
commit 4ebaa31d90

View File

@ -317,9 +317,9 @@ renderBootstrap aform fragment = do
let widget = [whamlet|
\#{fragment}
$forall view <- views
<div .clearfix :fvRequired view:.required :not $ fvRequired view:.optional :has $ fvErrors view:.error>
<label for=#{fvId view}>#{fvLabel view}
<div.input>
<div .control-group .clearfix :fvRequired view:.required :not $ fvRequired view:.optional :has $ fvErrors view:.error>
<label .control-label for=#{fvId view}>#{fvLabel view}
<div .controls .input>
^{fvInput view}
$maybe tt <- fvTooltip view
<span .help-block>#{tt}