ContentsIndex
Framework.Forms.Rendering
Synopsis
processForm' :: [Form -> FormController] -> Form -> FormController
processForm :: Form -> FormController
processHtmlForm :: HTMLForm -> AController String
renderCreateForm :: Form -> String -> [(String, String)] -> String -> AController (String, String)
renderCreateForm' :: Form -> String -> [(String, String)] -> [(String, String)] -> String -> AController (String, String)
renderEditForm :: Model -> Form -> String -> String -> AController (String, String)
returnInvalidForm :: Form -> String -> [(String, String)] -> AController a
Documentation
processForm' :: [Form -> FormController] -> Form -> FormController
processForm :: Form -> FormController
processHtmlForm :: HTMLForm -> AController String
renderCreateForm
:: FormA form
-> StringForm ID
-> [(String, String)]Hidden values
-> StringTarget URL
-> AController (String, String)(Form HTML, error message)
Generate a form, maybe filled with already-entered data. This never does returnNow.
renderCreateForm'
:: FormA form
-> StringForm ID
-> [(String, String)]Default values
-> [(String, String)]Hidden values
-> StringTarget URL
-> AController (String, String)(Form HTML, error message)
Same, but filled with default values
renderEditForm
:: Model
-> Form
-> StringForm ID
-> StringTarget URL
-> AController (String, String)
Show edit form for model
returnInvalidForm
::
=> Form
-> StringForm ID
-> [(String, String)]Erroneus filled fields and error messages
-> AController a
Produced by Haddock version 2.4.2