- input :: Monad m => XHtmlFormlet m String
- textarea :: Monad m => Maybe Int -> Maybe Int -> XHtmlFormlet m String
- password :: Monad m => XHtmlFormlet m String
- file :: Monad m => XHtmlForm m File
- checkbox :: Monad m => XHtmlFormlet m Bool
- hidden :: Monad m => XHtmlFormlet m String
- inputInteger :: Monad m => XHtmlFormlet m Integer
- radio :: Monad m => [(String, String)] -> XHtmlFormlet m String
- enumRadio :: (Monad m, Enum a) => [(a, String)] -> XHtmlFormlet m a
- label :: (Monad m, HTML h) => h -> Form Html m ()
- selectXHtml :: HTML h => [HtmlAttr] -> [(String, h)] -> String -> String -> Html
- selectRaw :: (Monad m, HTML h) => [HtmlAttr] -> [(String, h)] -> XHtmlFormlet m String
- select :: (Eq a, Monad m, HTML h) => [HtmlAttr] -> [(a, h)] -> XHtmlFormlet m a
- enumSelect :: (Enum a, Bounded a, Show a, Eq a, Monad m) => [HtmlAttr] -> XHtmlFormlet m a
- type XHtmlForm m a = Form Html m a
- type XHtmlFormlet m a = Formlet Html m a
- module Text.Formlets
Documentation
input :: Monad m => XHtmlFormlet m StringSource
An input field with an optional value
textarea :: Monad m => Maybe Int -> Maybe Int -> XHtmlFormlet m StringSource
A textarea with optional rows and columns, and an optional value
password :: Monad m => XHtmlFormlet m StringSource
A password field with an optional value
checkbox :: Monad m => XHtmlFormlet m BoolSource
A checkbox with an optional default value
hidden :: Monad m => XHtmlFormlet m StringSource
A hidden input field
inputInteger :: Monad m => XHtmlFormlet m IntegerSource
A validated integer component
:: HTML h | |
=> [HtmlAttr] | Optional attributes for the select-box |
-> [(String, h)] | The values and their labels |
-> String | The name |
-> String | The value that is selected |
-> Html |
This is a helper function to generate select boxes
:: (Monad m, HTML h) | |
=> [HtmlAttr] | Optional attributes for the select-element |
-> [(String, h)] | Pairs of value/label |
-> XHtmlFormlet m String |
A drop-down for selecting values
select :: (Eq a, Monad m, HTML h) => [HtmlAttr] -> [(a, h)] -> XHtmlFormlet m aSource
A drop-down for anything that is an instance of Eq
enumSelect :: (Enum a, Bounded a, Show a, Eq a, Monad m) => [HtmlAttr] -> XHtmlFormlet m aSource
A drop-down for all the options from |a|.
type XHtmlFormlet m a = Formlet Html m aSource
module Text.Formlets