Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- encodeFormId :: FormId -> Text
- 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 :: (Monad m, Functor m, Applicative f) => [Attribute] -> Form m input error (HtmlT f ()) a -> Form m input error (HtmlT f ()) a
- errorList :: (Monad m, ToHtml error, Monad f) => Form m input error (HtmlT f ()) ()
- childErrorList :: (Monad m, ToHtml error, Monad f) => Form m input error (HtmlT f ()) ()
- withErrors :: (Monad m, ToHtml error, Monad f) => [Attribute] -> ([error] -> HtmlT f ()) -> Form m input error (HtmlT f ()) a -> Form m input error (HtmlT f ()) a
- br :: (Monad m, Applicative f) => Form m input error (HtmlT f ()) ()
- fieldset :: (Monad m, Functor m, Applicative f) => Form m input error (HtmlT f ()) a -> Form m input error (HtmlT f ()) a
- ol :: (Monad m, Functor m, Applicative f) => Form m input error (HtmlT f ()) a -> Form m input error (HtmlT f ()) a
- ul :: (Monad m, Functor m, Applicative f) => Form m input error (HtmlT f ()) a -> Form m input error (HtmlT f ()) a
- li :: (Monad m, Functor m, Applicative f) => Form m input error (HtmlT f ()) a -> Form m input error (HtmlT f ()) a
Documentation
encodeFormId :: FormId -> Text Source #
:: 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 :: (Monad m, 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.
withErrors :: (Monad m, ToHtml error, Monad f) => [Attribute] -> ([error] -> HtmlT f ()) -> Form m input error (HtmlT f ()) a -> Form m input error (HtmlT f ()) a Source #
fieldset :: (Monad m, 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 :: (Monad m, 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