| Portability | unportable |
|---|---|
| Stability | unstable |
| Maintainer | pbrisbin@gmail.com |
| Safe Haskell | None |
Yesod.Comments.Form
Description
- data CommentForm = CommentForm {}
- commentForm :: RenderMessage m FormMessage => ThreadId -> UserDetails -> Maybe Comment -> Form s m CommentForm
- commentFromForm :: YesodComments m => CommentForm -> GHandler s m Comment
- runForm :: YesodComments m => ThreadId -> Maybe UserDetails -> GWidget s m ()
- runFormWith :: YesodComments m => Maybe Comment -> (CommentForm -> GHandler s m ()) -> ThreadId -> Maybe UserDetails -> GWidget s m ()
Documentation
data CommentForm Source
Constructors
| CommentForm | |
Fields
| |
commentForm :: RenderMessage m FormMessage => ThreadId -> UserDetails -> Maybe Comment -> Form s m CommentFormSource
commentFromForm :: YesodComments m => CommentForm -> GHandler s m CommentSource
runForm :: YesodComments m => ThreadId -> Maybe UserDetails -> GWidget s m ()Source
Run the form and stores the comment on successful submission
runFormWith :: YesodComments m => Maybe Comment -> (CommentForm -> GHandler s m ()) -> ThreadId -> Maybe UserDetails -> GWidget s m ()Source
Both handle form submission and present form HTML. On FormSuccess,
run the given function on the submitted value.