From 5038bea627ad96681ae101ecae15e4ff69b4288e Mon Sep 17 00:00:00 2001 From: Maximilian Tagher Date: Fri, 21 Nov 2014 20:17:55 -0800 Subject: [PATCH] Document Yesod.Form.Bootstrap3 --- yesod-form/Yesod/Form/Bootstrap3.hs | 52 +++++++++++++++++++++++------ 1 file changed, 42 insertions(+), 10 deletions(-) diff --git a/yesod-form/Yesod/Form/Bootstrap3.hs b/yesod-form/Yesod/Form/Bootstrap3.hs index 84e85fc8..cf040c61 100644 --- a/yesod-form/Yesod/Form/Bootstrap3.hs +++ b/yesod-form/Yesod/Form/Bootstrap3.hs @@ -1,13 +1,19 @@ {-# 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 + + -- * Rendering forms renderBootstrap3 , BootstrapFormLayout(..) , BootstrapGridOptions(..) -- * Field settings + -- $fieldSettings , bfs , withPlaceholder , withAutofocus @@ -30,7 +36,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,14 +132,14 @@ 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, @\