Commit Graph

337 Commits

Author SHA1 Message Date
Tad Doxsee
59ded9e2b5 doubleField may add a zero to some text before sending it to Data.Text.Read so that text such as '.3' may be read as 0.3. 2014-05-23 11:18:18 -07:00
Michael Snoyman
96e59947eb Add ToJSON and FromJSON for Textarea (fixes #738) 2014-05-13 09:08:44 +03:00
Michael Snoyman
c8f7e34b2f Merge pull request #731 from andrewthad/master
Fix starting field number
2014-05-09 18:28:07 +03:00
andrewthad
9f379bc219 Fix starting field number
This commit makes starts the counter as `IntSingle 0` instead of `IntSingle 1`. This is needed because `newFormIdent` yield the incremented state value. Meaning: right now, all of my forms start at f2 instead of f1. This commit will make them start at f1 like I would expect them to.
2014-05-06 09:34:56 -04:00
Michael Snoyman
098bff53ec Lower bound on hamlet-1.1.8 for yesod-form #727 2014-04-30 07:40:54 +03:00
Michael Snoyman
c9378af060 Strip a bound 2014-04-18 14:36:17 +03:00
Michael Snoyman
fe622d5345 Merge remote-tracking branch 'origin/master' into yesod-1.4
Conflicts:
	yesod-auth/yesod-auth.cabal
	yesod-form/Yesod/Form/Fields.hs
	yesod-form/yesod-form.cabal
	yesod-persistent/Yesod/Persist/Core.hs
2014-04-18 14:33:54 +03:00
Michael Snoyman
ad4ab651b4 renderBootstrap2 2014-04-09 21:59:06 +03:00
Michael Snoyman
3f4a870b86 Workaround for GHC 7.8.1 regression 2014-04-09 20:49:03 +03:00
Michael Snoyman
d764464152 conduit 1.1 2014-03-27 16:38:52 +02:00
Michael Snoyman
827b1d4bd2 Merge remote-tracking branch 'origin/master' into persistent2-simpler-dispatch 2014-03-20 20:38:14 +02:00
Michael Snoyman
0774864877 Use pure in an example 2014-03-20 12:09:24 +02:00
Michael Snoyman
24e8e53f64 Merge remote-tracking branch 'origin/master' into persistent2-simpler-dispatch
Conflicts:
	.gitignore
	yesod-core/yesod-core.cabal
2014-03-20 04:14:09 +02:00
Vincent Hanquez
8d07d1fa72 Use const time equality from byteable instead of crypto-api 2014-03-18 08:29:47 +00:00
Satoshi Nakamura
09caea1e49 Remove an extra backslash 2014-03-17 19:35:51 +09:00
Felipe Lessa
969496b9f1 Golf around on identifyForm :). 2014-03-12 11:32:46 -03:00
Felipe Lessa
3d2253d5d3 Typo. 2014-03-12 11:23:32 -03:00
Felipe Lessa
68d0142dda New identifyForm function (fixes #649).
Based on code from @axel-angel but rewritten in a more lightweight
style (IMHO, at least :).
2014-03-12 11:20:31 -03:00
Felipe Lessa
a7a7764c97 Do not display FormFailures as they contain duplicates of field failures. 2014-03-12 10:27:46 -03:00
Felipe Lessa
51fbc2a57b Use correct error classes on Bootstrap3 module. 2014-03-12 10:14:04 -03:00
Felipe Lessa
e44b93083a Smarter with{Small,Large}Input, do not override existing classes. 2014-03-11 17:45:59 -03:00
Felipe Lessa
4366dbc05f Bump yesod-form to version 1.3.8. 2014-03-11 17:10:54 -03:00
Felipe Lessa
59402da412 Deprecate the original renderBootstrap. 2014-03-11 17:09:27 -03:00
Felipe Lessa
12a527a9d5 New Yesod.Form.Bootstrap3 module.
The original renderBootstrap code was heavily modified by
Mladen Srdic [1].  I took his code and modified it as well,
and the result is this commit.

[1] https://www.fpcomplete.com/user/msrdic/bootstrap-3-forms-with-yesod-1
2014-03-11 17:08:41 -03:00
Michael Snoyman
43eb8d83f0 Update hello-forms to use multi email field 2014-03-09 18:56:25 +02:00
Toby Goodwin
e2a6ef31ed eschew fromJust, better error reporting 2014-03-09 16:20:39 +00:00
Toby Goodwin
1acd48079c improve error handling to report particular errs 2014-03-07 18:57:29 +00:00
Toby Goodwin
010ecffa1b implement multiEmailField 2014-03-07 18:28:35 +00:00
Michael Snoyman
bcff12bed1 parseHelperGen 2014-03-05 06:59:57 +02:00
Michael Snoyman
84baab6fb5 Merge remote-tracking branch 'origin/simpler-dispatch' into persistent2-simpler-dispatch 2014-03-04 13:47:21 +02:00
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
37a2aba25c Version bump 2014-02-02 18:45:29 +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
Michael Snoyman
db096471ca persistent2 2014-01-16 08:23:50 +02:00
Michael Snoyman
1479f44f82 Version bumps 2014-01-16 07:46:27 +02:00
Ilya Smelkov
d500468b8d Change doubleField type from text to number 2014-01-13 23:27:22 +04:00
Michael Snoyman
b018c5d7aa Allow persistent 1.3 2013-12-26 12:13:10 +02: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
6f68aa46ff Version bump 2013-12-13 08:24:18 +02:00
Michael Snoyman
d8bdcae2d5 Add required attribute for radio fields and selects #628 2013-12-11 18:56:48 +02:00
Michael Snoyman
294641c404 Version bumps 2013-11-10 07:48:01 +02:00
Michael Snoyman
ad6e99d589 GHC 7.8 changes 2013-10-15 10:30:05 +03:00
Michael Snoyman
2e7694d465 Version bump 2013-10-13 18:40:17 +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
c876974656 version bumps 2013-09-10 20:43:42 +03:00
Michael Snoyman
43e806ef4e true/false for boolField #595 2013-09-08 17:21:08 +02:00
Michael Snoyman
db17c0ade1 shakespeare 1.2/version bumps 2013-09-08 13:48:24 +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
Michael Snoyman
d5bf0f583d Version bumps 2013-08-13 18:59:21 +03:00
Lubomír Sedlář
51f1b54b34 Add Czech translation to forms 2013-08-01 19:23:59 +02:00
Michael Snoyman
aae3c7a4fb Version bumps 2013-06-24 13:57:07 +03:00
Iku Iwasa
6ed1b27a4a Use protocol relative URLs for Google hosted libraries 2013-06-09 15:10:02 +09:00
Michael Snoyman
fd15efa8dd Fix yesod-form 2013-04-11 15:22:58 +03: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
db57468832 Version bumps 2013-03-11 12:07:10 +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
Michael Snoyman
431787f7cb Remove some upper bounds 2013-02-18 10:33:44 +02:00
Michael Snoyman
551b9d7c1e Version bumps 2013-02-18 07:02:08 +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
d167842839 Version bumps, http-types 0.8 2013-01-29 10:33:14 +02:00
Michael Snoyman
617c1d724e Removed some FIXMEs 2013-01-02 14:26:56 +02:00
Michael Snoyman
b7224f9654 Version bumps 2012-12-02 14:38:34 +02:00
Michael Snoyman
fb02d71d73 Persistent 1.1 2012-11-27 16:57:46 +02:00
Michael Snoyman
69791585aa email-validate 0.3 2012-11-22 07:09:41 +02:00
Michael Snoyman
053210da6f shakespeare-js 1.0.2 and 1.1 2012-11-16 09:27:31 +02:00
Michael Snoyman
e40c846d47 yesod-form version bump 2012-11-15 09:18:37 +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
e43bc22c39 Version bumps 2012-11-13 09:52:21 +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
Simon Hengel
dfae661878 Adept Hspec tests for forward compatibility
* Don't use hspecX, it's deprecated.

 * Do not import Test.Hspec.HUnit.  It's no longer necessary and may be
   removed in the future.
2012-10-16 14:44:58 +02:00
Michael Snoyman
8793cffe47 warpEnv 2012-09-24 15:57:01 +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 Snoyman
fef3024d30 network 2.4 2012-09-19 09:02:58 +03:00
Michael Snoyman
a6ce05609d Version bumps 2012-09-11 07:17:23 +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
55264b1c6b Version bumps 2012-08-13 20:42:57 +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
Michael Snoyman
5ece1e96e4 Rename blank to parseHelper (#354) 2012-08-01 15:57:06 +03:00
Michael Snoyman
aa93e562bb Merge pull request #381 from adamtulinius/master
export blank
2012-08-01 05:49:26 -07:00
Felipe Lessa
d1f9a30efa yesod-form: Use constTimeEq when checking XSRF token (fixes #388). 2012-07-25 16:19:07 -03:00
Michael Snoyman
b4d1b2087c Fix for missing Read instance on Fixed 2012-07-14 21:54:52 +03:00
Michael Snoyman
d6f8ec8883 Merge pull request #387 from robertLeeGDM/patch-1
Additional tests on 12 am/pm variants.
2012-07-14 11:33:14 -07:00
Michael Snoyman
b9d5890567 Add a type signature 2012-07-13 18:37:42 +03:00
Robert
128a9bd1d4 Additional tests on 12 am/pm variants. 2012-07-13 10:08:59 -05:00
Michael Snoyman
c005bc0aec Fix a warning 2012-07-13 16:26:32 +03:00
Michael Snoyman
14f1fd1e27 Better parseTime 2012-07-13 16:20:10 +03:00
Michael Snoyman
699d76d13a Merge branch 'beta'
Conflicts:
	yesod-core/yesod-core.cabal
	yesod-json/yesod-json.cabal
	yesod-test/Yesod/Test.hs
	yesod-test/test/main.hs
	yesod-test/yesod-test.cabal
2012-07-11 08:48:09 +03:00
Michael Snoyman
9af79e4d13 Recognize 'on' for booleans 2012-07-05 11:58:53 +03:00
Adam Tulinius
2f6cdb1ced Export blank 2012-07-04 17:46:41 +02:00
Michael Snoyman
2dc8e653ab Fix yesod-form for FileUpload change 2012-07-02 17:16:53 +03:00
Michael Snoyman
3ecbf43f5d $newline 2012-07-01 20:59:37 +03:00
Michael Snoyman
a5361e44f2 checkM' (need to rename it) 2012-06-30 22:09:13 +03:00
Michael Snoyman
014732dac8 hspec 1.2 2012-06-26 10:56:50 +03:00
Michael Snoyman
9df0dd0212 Remove bounds on data-default 2012-06-26 09:09:07 +03:00
Michael Snoyman
ebc737a5cb conduit 0.5 2012-06-22 15:28:14 +03:00
Michael Snoyman
8b5fbb47af New jQuery (#371) 2012-06-18 10:03:54 +03:00
JP Moresmau
ebd219cafe renderDivs without form labels 2012-06-15 08:52:10 +02:00
Michael Snoyman
83e6061944 Merge branch 'master' of https://github.com/tanakh/yesod
Conflicts:
	yesod-auth/Yesod/Auth/Message.hs
	yesod-form/yesod-form.cabal
2012-06-05 06:22:31 +03:00
Hideyuki Tanaka
7296b13fc3 japanese translation 2012-06-05 01:13:22 +09:00
Christian Rødli Amble
5a54cf0dbc Norwegian language support. 2012-06-04 11:03:04 +02:00
Michael
4929ece70c Added Ord instance for Textarea 2012-05-31 07:25:53 +03:00
Michael Snoyman
1edf9b2b1b Fix jQuery date picker for newer jQuery versions 2012-05-22 21:25:15 +03:00
Michael Snoyman
61b5627e44 Version bumps 2012-05-14 12:33:44 +03:00
Michael Snoyman
d0a7447f56 Remove containers upper bounds 2012-05-09 10:25:19 +03:00
Michael Snoyman
468b013860 Turn on blaze-html 0.5 by default 2012-05-09 09:50:37 +03:00
Michael Snoyman
e18c678aed Remove upper bounds on bytestring (yesodweb/shakespeare#60) 2012-04-29 09:38:45 +03:00
Michael Snoyman
20015aa6ee Update license with MIT license 2012-04-29 09:38:45 +03:00
Michael Snoyman
4789a1d073 yesod-form: blaze-html 0.5 2012-04-23 13:49:52 +03:00
Michael Snoyman
4b6490e037 Generalize hiddenField to any PathPiece 2012-04-17 18:31:57 +03:00
Michael Snoyman
a3fdf21121 Auto-wrap SomeMessage on fieldSettingsLabel 2012-04-17 18:31:56 +03:00
Felipe Lessa
a485e5c33b Merge pull request #326 from Xarch/master
French translation of Yesod Auth.
2012-04-11 11:17:44 -07:00
Félix
856a25c67f Frencih -> French 2012-04-11 20:15:11 +02:00
Félix
e41a6aca80 Fixed module informations for the french translation of form messages 2012-04-11 19:49:11 +02:00
Felipe Lessa
a2cb436828 Fix FIXME comment on htmlField (fixes #328). 2012-04-11 08:34:55 -03:00
Félix
9ccd0e24a6 French support for forms 2012-04-10 20:27:10 +02:00
Michael Snoyman
110b4a2b45 Relax some upper bounds 2012-04-05 22:40:51 +03:00
Michael Snoyman
43d938bbe7 Switch from BSD3 to MIT 2012-04-03 10:45:51 +03:00
Michael Snoyman
fc29c153ed Removed dates from version numbers 2012-04-03 07:57:43 +03:00
Michael Snoyman
1b985796ec Better generateFormPost 2012-04-02 18:32:53 +03:00
Michael Snoyman
25ec577449 transformers 0.3 2012-03-28 16:23:00 +02:00
Michael Snoyman
9b9a3ad605 Fix a bug in IsString instance of FieldSettings 2012-03-28 07:41:49 +02:00
Michael Snoyman
d464f85f9d fsLabel and fsTooltip are SomeMessage 2012-03-25 18:49:35 +02:00