Safe Haskell | None |
---|---|
Language | Haskell2010 |
Defines the forms used in the app
Synopsis
- secureForm :: Text -> (View Html -> Html) -> View Html -> Action v Html
- data EditJob = EditJob {}
- editJobForm :: Either (JobInfo info) EditJob -> Form Html (Action' ()) EditJob
- createPayload :: JobInfo info -> Form Html (Action' ()) [(Text, Text)]
- editJobFormView :: JobInfo info -> View Html -> Html
- jobToEditJob :: Job -> EditJob
- trim :: Text -> Text
Documentation
secureForm :: Text -> (View Html -> Html) -> View Html -> Action v Html Source #
A form with hidden csrf token
Definition of an edit job data type
editJobForm :: Either (JobInfo info) EditJob -> Form Html (Action' ()) EditJob Source #
Definition of a form and it's validation
editJobFormView :: JobInfo info -> View Html -> Html Source #
Defining the view for the edit event form
jobToEditJob :: Job -> EditJob Source #