jobs-ui-0.1.0.0: A library for creating a jobs management website running custom jobs.

Safe HaskellNone
LanguageHaskell2010

Web.JobsUi.Forms

Description

Defines the forms used in the app

Synopsis

Documentation

secureForm :: Text -> (View Html -> Html) -> View Html -> Action v Html Source #

A form with hidden csrf token

data EditJob Source #

Definition of an edit job data type

Constructors

EditJob 

Fields

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

trim :: Text -> Text Source #

trim spaces from both sides