diff --git a/yesod-form/Yesod/Form/Bootstrap3.hs b/yesod-form/Yesod/Form/Bootstrap3.hs index 84e85fc8..8377a68f 100644 --- a/yesod-form/Yesod/Form/Bootstrap3.hs +++ b/yesod-form/Yesod/Form/Bootstrap3.hs @@ -1,13 +1,22 @@ {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE OverloadedStrings #-} --- | Helper functions for creating forms when using Bootstrap v3. +-- | Helper functions for creating forms when using . +-- + module Yesod.Form.Bootstrap3 - ( -- * Rendering forms + ( -- * Example: Rendering a basic form + -- $example + + -- * Example: Rendering a horizontal form + -- $example2 + + -- * Rendering forms renderBootstrap3 , BootstrapFormLayout(..) , BootstrapGridOptions(..) -- * Field settings + -- $fieldSettings , bfs , withPlaceholder , withAutofocus @@ -30,7 +39,7 @@ import qualified Data.Text as T import Yesod.Form.Types import Yesod.Form.Functions --- | Create a new 'FieldSettings' with the classes that are +-- | Create a new 'FieldSettings' with the @form-control@ class that is -- required by Bootstrap v3. -- -- Since: yesod-form 1.3.8 @@ -126,25 +135,19 @@ addGO (ColLg _) _ = error "Yesod.Form.Bootstrap.addGO: never here" -- -- Since: yesod-form 1.3.8 data BootstrapFormLayout = - BootstrapBasicForm - | BootstrapInlineForm + BootstrapBasicForm -- ^ A form with labels and inputs listed vertically. See + | BootstrapInlineForm -- ^ A form whose @\@ are laid out horizontally (displayed as @inline-block@). For this layout, @\