Commit Graph

149 Commits

Author SHA1 Message Date
Michael Snoyman
12ddec8b8c Fix pure for AForm #672 2014-02-26 07:54:01 +02:00
Michael Snoyman
480b4e3304 Some fixes for mass input 2014-02-10 11:24:20 +02:00
Michael Snoyman
cdfd478fcd Factor out some duplicated code 2014-01-31 13:15:05 +02:00
Elise Huard
a417b95a98 runInputPostResult is the modified method 2014-01-31 10:45:43 +01:00
Elise Huard
12897ae5a0 Defer error handling of runInputForm to user code. 2014-01-30 15:28:56 +01:00
Michael Snoyman
b88308720f step= for int and double fields 2014-01-21 22:52:18 +02:00
Ilya Smelkov
d500468b8d Change doubleField type from text to number 2014-01-13 23:27:22 +04:00
Michael Snoyman
8376f4da9e Revert "Update Functions.hs"
This reverts commit 78913a2cfb.
2013-12-22 16:29:12 +02:00
Michael Snoyman
c5a59a98d4 Merge pull request #635 from andrewthad/master
Update Functions.hs
2013-12-21 10:02:22 -08:00
andrewthad
78913a2cfb Update Functions.hs
Generalize parseHelper to work with types of messages other than FormMessage.
2013-12-20 12:01:55 -05:00
Michael Snoyman
d8bdcae2d5 Add required attribute for radio fields and selects #628 2013-12-11 18:56:48 +02:00
Michael Snoyman
ad6e99d589 GHC 7.8 changes 2013-10-15 10:30:05 +03:00
Axel Angel
0dcc9e2b29 Simplify in checkboxesField{,List}: no intermediate selOpts list 2013-09-22 15:08:21 +02:00
Axel Angel
a3bef1bc2b Add missing exports for checkboxesField{,List} 2013-09-22 15:01:09 +02:00
Axel Angel
d13c145b97 Add checkboxesField{,List} fields (based on multiSelectField{,List})
squashed:
    - Attrs are applied to checkboxes in checkBoxField
    - Fix checkboxesField{,List} attrs are applied to input instead of span
    - Fix checkboxesField{,List} attribute checked
2013-09-18 20:27:24 +02:00
Michael Snoyman
43e806ef4e true/false for boolField #595 2013-09-08 17:21:08 +02:00
Michael Snoyman
5642489841 Minor tweaks for #590 2013-09-01 16:15:03 +03:00
andrewthad
c9791bd2c7 Update Fields.hs 2013-08-30 12:21:40 -04:00
andrewthad
b8d47f880f Added optionsPersistKey to Fields
There is no immediately obvious way to use optionsPersist with selectField. The function optionsPersistKey makes this possible. Example of use:
areq (selectField $ optionsPersistKey [] [Asc UserIdent] userIdent) "User" Nothing
2013-08-28 15:14:08 -04:00
Lubomír Sedlář
1ea61ddfc7 Add more documentation to Yesod.Form.Functions 2013-08-23 16:44:21 +02:00
Lubomír Sedlář
51f1b54b34 Add Czech translation to forms 2013-08-01 19:23:59 +02:00
Iku Iwasa
6ed1b27a4a Use protocol relative URLs for Google hosted libraries 2013-06-09 15:10:02 +09:00
Michael Snoyman
99ba9456f7 Killed Yesod.Form.Class (fixes #470) 2013-04-11 14:18:52 +03:00
Michael Snoyman
28e7a9db23 Persistent 1.2 2013-04-03 09:06:13 +03:00
Michael Snoyman
68ca768b83 Export more aeson stuff 2013-03-20 11:57:00 +02:00
Michael Snoyman
fb4045ea45 Warning cleanup 2013-03-20 11:46:32 +02:00
Michael Snoyman
a2c4f1f3b7 MonadHandler/MonadWidget 2013-03-17 10:10:39 +02:00
Michael Snoyman
9c4cd573b4 Everything compiles 2013-03-14 09:28:51 +02:00
Michael Snoyman
099b96f178 Everything compiles 2013-03-13 13:35:11 +02:00
Michael Snoyman
eecda0c80e Removed conditional compilation 2013-03-11 11:46:05 +02:00
Michael Snoyman
8246aa4c1e Whole repo compiles 2013-03-11 11:25:26 +02:00
Toshiaki Ishikura
aca425ea55 h2 looks like textfield 2013-02-14 17:04:53 +09:00
Michael Snoyman
c786b30afb email-validate 1.0.0 2013-02-02 19:51:15 +02:00
Michael Snoyman
617c1d724e Removed some FIXMEs 2013-01-02 14:26:56 +02:00
Michael Snoyman
fb02d71d73 Persistent 1.1 2012-11-27 16:57:46 +02:00
Michael Snoyman
053210da6f shakespeare-js 1.0.2 and 1.1 2012-11-16 09:27:31 +02:00
Michael Snoyman
7e17a8df50 Merge branch 'fileField'
Conflicts:
	yesod-form/Yesod/Form/Types.hs
2012-11-15 09:14:07 +02:00
Michael Snoyman
a35161cf6e Haddock fixes 2012-11-12 17:51:41 +02:00
Michael Snoyman
2ea1bcb5c8 fileField unabled
Boils down to two changes:

* fieldParse takes a list of FileInfos
* fieldEnctype added
2012-11-09 08:58:03 +02:00
Michael Snoyman
363e4afeee Allow multiple files (#448) 2012-11-07 09:08:29 +02:00
Michael Snoyman
49baf17b78 Do that attr thing properly 2012-10-24 17:38:15 +02:00
Michael Snoyman
f8497c3a22 Put attributes on <select>, not <option> 2012-10-24 17:33:57 +02:00
Arash Rouhani
e35124f96f Use haddock for Yesod.Form.Types.Field 2012-09-22 18:58:34 -04:00
Michael Snoyman
0c68f46762 MonadLift instance for AForm 2012-09-19 09:03:53 +03:00
Michael
498d22714b checkMMod to checkMMap (#416) 2012-09-04 17:57:05 +03:00
Michael Snoyman
6b31b583f2 checkMMod 2012-08-22 20:05:34 +03:00
Michael Snoyman
0e17fcd0b4 Merge remote-tracking branch 'origin/master' 2012-08-08 17:04:59 +03:00
Michael Snoyman
28e0bf88aa Bootstrap friendly radio markup (#394) 2012-08-08 17:04:18 +03:00
Michael Snoyman
5bc6b501b2 Removed blaze-html 0.5 conditionals 2012-08-08 17:03:59 +03:00
Erlend Hamberg
7451164451 Some fixes for Norwegian translation
“obligatoriskt” was probably left over from the Swedish translation and should   be “obligatorisk”
“sannhetsverdi” is the established term for a boolean
“Slett?” should be “Slette?” if the orignal string means “[Do you want to ]delete?”
2012-08-08 00:15:17 +03:00