Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- formGenGET :: Applicative m => Text -> [(Text, Text)] -> HtmlT m b -> HtmlT m b
- formGenPOST :: Applicative m => Text -> [(Text, Text)] -> HtmlT m b -> HtmlT m b
- setAttr :: (Environment m input, Functor m, Applicative f) => [Attribute] -> Form m input error (HtmlT f ()) a -> Form m input error (HtmlT f ()) a
- errorList :: (Environment m input, ToHtml error, Monad f) => Form m input error (HtmlT f ()) ()
- childErrorList :: (Environment m input, ToHtml error, Monad f) => Form m input error (HtmlT f ()) ()
- withErrors :: (Environment m input, ToHtml error, Monad f) => (HtmlT f () -> [error] -> HtmlT f ()) -> Form m input error (HtmlT f ()) a -> Form m input error (HtmlT f ()) a
- withChildErrors :: (Environment m input, ToHtml error, Monad f) => (HtmlT f () -> [error] -> HtmlT f ()) -> Form m input error (HtmlT f ()) a -> Form m input error (HtmlT f ()) a
- br :: (Environment m input, Applicative f) => Form m input error (HtmlT f ()) ()
- fieldset :: (Environment m input, Functor m, Applicative f) => Form m input error (HtmlT f ()) a -> Form m input error (HtmlT f ()) a
- ol :: (Environment m input, Functor m, Applicative f) => Form m input error (HtmlT f ()) a -> Form m input error (HtmlT f ()) a
- ul :: (Environment m input, Functor m, Applicative f) => Form m input error (HtmlT f ()) a -> Form m input error (HtmlT f ()) a
- li :: (Environment m input, Functor m, Applicative f) => Form m input error (HtmlT f ()) a -> Form m input error (HtmlT f ()) a
Documentation
:: Applicative m | |
=> Text | action url |
-> [(Text, Text)] | hidden fields to add to form |
-> HtmlT m b | |
-> HtmlT m b |
create <form action=action method="GET" enctype="application/xxx-form-urlencoded">
:: Applicative m | |
=> Text | action url |
-> [(Text, Text)] | hidden fields to add to form |
-> HtmlT m b | |
-> HtmlT m b |
create <form action=action method="POST" enctype="application/xxx-form-urlencoded">
setAttr :: (Environment m input, Functor m, Applicative f) => [Attribute] -> Form m input error (HtmlT f ()) a -> Form m input error (HtmlT f ()) a Source #
add an attribute to the Html
for a form element.
errorList :: (Environment m input, ToHtml error, Monad f) => Form m input error (HtmlT f ()) () Source #
childErrorList :: (Environment m input, ToHtml error, Monad f) => Form m input error (HtmlT f ()) () Source #
withErrors :: (Environment m input, ToHtml error, Monad f) => (HtmlT f () -> [error] -> HtmlT f ()) -> Form m input error (HtmlT f ()) a -> Form m input error (HtmlT f ()) a Source #
create a sibling element to the formlet which includes its error message
The ul
will have the attribute class="ditto-error-list"
.
withChildErrors :: (Environment m input, ToHtml error, Monad f) => (HtmlT f () -> [error] -> HtmlT f ()) -> Form m input error (HtmlT f ()) a -> Form m input error (HtmlT f ()) a Source #
create a sibling element to the formlet which includes it and it's childrens' error message
The ul
will have the attribute class="ditto-error-list"
.
br :: (Environment m input, Applicative f) => Form m input error (HtmlT f ()) () Source #
create a <br>
tag.
fieldset :: (Environment m input, Functor m, Applicative f) => Form m input error (HtmlT f ()) a -> Form m input error (HtmlT f ()) a Source #
wrap a <fieldset class="ditto">
around a Form
ol :: (Environment m input, Functor m, Applicative f) => Form m input error (HtmlT f ()) a -> Form m input error (HtmlT f ()) a Source #
wrap an <ol class="ditto">
around a Form