Commit Graph

380 Commits

Author SHA1 Message Date
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
Michael Snoyman
46308c8d1f fsClass to fsAttrs 2012-03-25 17:57:40 +02:00
Michael Snoyman
67ae9c739b Merge commit 'e4e2dd75cc86909d66062a7655b8cbc3a959932d'
Conflicts:
	yesod-auth/Yesod/Auth.hs
	yesod-auth/Yesod/Auth/BrowserId.hs
	yesod-auth/Yesod/Auth/Dummy.hs
	yesod-auth/Yesod/Auth/Email.hs
	yesod-auth/Yesod/Auth/HashDB.hs
	yesod-auth/Yesod/Auth/OpenId.hs
	yesod-auth/Yesod/Auth/Rpxnow.hs
	yesod-form/Yesod/Form/Fields.hs
	yesod-form/Yesod/Form/Functions.hs
	yesod-form/Yesod/Form/Jquery.hs
	yesod-form/Yesod/Form/Nic.hs
	yesod-form/Yesod/Helpers/Crud.hs
	yesod-newsfeed/Yesod/AtomFeed.hs
	yesod-newsfeed/Yesod/RssFeed.hs
2012-03-25 11:07:12 +02:00
Michael Snoyman
22cd28b8f4 shakespeare 1.0 bump 2012-03-20 17:30:06 +02:00
Michael Snoyman
ec62f6f68c nonce -> token (#214) 2012-03-16 06:39:30 +02:00
Pascal Wittmann
ba1e083edc removed QQ hacks from yesod-form 2012-03-15 21:57:32 +01:00
Michael Snoyman
4cc468ca3b Beginning of old widget function deprecation, not complete 2012-03-13 06:36:27 +02:00
Michael Snoyman
cbd0719f37 conduit 0.3 2012-03-12 13:40:04 +02:00
Michael Snoyman
b5f2e4863d Remove some QQ hacks #288 2012-03-12 08:50:15 +02:00
Greg Weber
096a84cec1 version bumps for new shakespeare 2012-03-11 23:12:24 -07:00
Felipe Lessa
02d3b702aa Small doc fix on Yesod.Form.Fields.Textarea. 2012-03-02 17:32:00 -03:00
Felipe Lessa
8a3024113f Bump yesod-form to 0.4.2. 2012-02-20 16:32:55 -02:00
Felipe Lessa
5b75d6758a Fix small typo on renderBootstrap's doc. 2012-02-16 12:21:16 -02:00
Felipe Lessa
99fa1a07c4 yesod-form requires yesod-core >= 0.10.2.
Commit 651a1f8abd introduced
this dependency without stating it on the build-depends.
2012-02-16 12:13:12 -02:00
Felipe Lessa
4ebaa31d90 Support Bootstrap 2.0 on renderBootstrap. 2012-02-16 12:11:57 -02:00
Felipe Lessa
e1066b622a Update renderBootstrap's docs for Bootstrap 2.0. 2012-02-16 11:47:27 -02:00
Greg Weber
651a1f8abd more flexible js loading
* write your own async jsLoader widget.
* Suport loading from the bottom of body tag.

Bottom of the page is actually the best default until you profile your
application.
2012-02-12 08:11:45 -08:00
Falco Hirschenberger
9b7ebbabe5 Fix german grammar, no I'm no grammar-nazi, just improving things in the details ;-) 2012-02-11 19:30:45 +01:00
Michael Snoyman
566a5d2502 niceditor works with yepnope 2012-02-09 23:44:52 +02:00
Michael Snoyman
b26868cd28 Version bumps 2012-02-09 15:20:15 +02:00
Greg Weber
8b92389bc0 update shakespeare-js to 0.11 2012-01-31 09:10:19 -03:00
Michael Snoyman
2f38ddaff3 Temporarily remove sessionIpAddress (#243) 2012-01-31 06:53:47 +02:00
patrick brisbin
e1c6a6ae91 checkBoxField, closes #245 2012-01-28 12:51:16 -05:00
Felipe Lessa
baf10c118f Generalize yesod-form fields to take RenderMessage instead of Text.
Fixes issue #240.
2012-01-26 16:35:50 -02:00
Michael Snoyman
9b92215819 WAI 1.1 2012-01-26 15:56:13 +02:00
Simon Hengel
5c2f2b11c3 Use HTTP repository URLs
That way they get linked from Hackage.
2012-01-18 09:45:31 +01:00
Michael Snoyman
9dd414900e Fix some warnings 2012-01-17 14:25:50 +02:00
Michael Snoyman
73edd4758b renderBootstrap #212 2012-01-17 14:17:47 +02:00
Felipe Lessa
746a3fe5d2 Generalize formToAForm (fixes issue #213). 2012-01-17 10:16:11 -02:00
Michael Snoyman
4d5c123935 Better multiSelectField (#183) 2012-01-17 14:13:20 +02:00
Michael Snoyman
6e68102a6f fieldSettingsLabel and aformM 2012-01-13 07:46:54 +02:00
Michael Snoyman
5a6638ad18 Merge pull request #200 from wjt/jquery
jqueryDayField: do nothing if <input type=date> supported
2012-01-10 02:02:10 -08:00
Michael Snoyman
a98c236ef0 Remove jqueryDayTimeField (#152) 2012-01-10 12:00:12 +02:00
Michael Snoyman
ca9bb6e449 More pair -> Entity changes 2012-01-10 11:20:17 +02:00
Michael Snoyman
ad12ce63f0 Minor fixes 2012-01-07 19:23:56 +02:00
Michael Snoyman
69a5d0e0ed Whole repo builds with new yesod-routes 2012-01-05 15:27:16 +02:00
Will Thompson
94e4cf0213 jqueryDayField: do nothing if <input type=date> supported
On iOS 5, for example, <input type=date> throws up a native date picker,
so there's no reason to show the jquery-ui datepicker.

This is not perfect, because the jquery-ui JavaScript and CSS are still
loaded, and the JqueryDaySettings are not turned into attributes on the
<input>, but it's a start.
2012-01-05 09:29:06 +00:00
Michael Snoyman
61f0c26e9f MonadLift 2011-12-30 13:30:24 +02:00
Michael Snoyman
f8a95f058e Fixed yesod-form 2011-12-29 15:39:54 +02:00
Michael Snoyman
8e623d04a6 Merge branch 'beta' 2011-12-29 12:01:21 +02:00
Michael Snoyman
c90cf34ef5 data-object-yaml to yaml 0.5 2011-12-28 17:07:53 +02:00
Michael Snoyman
be07e4c535 Form class: [Text] 2011-12-28 09:18:49 +02:00
Michael Snoyman
d2a612a81b Merge commit '837f796' into beta
Conflicts:
	yesod-form/Yesod/Form/Fields.hs
	yesod-form/Yesod/Form/Types.hs
2011-12-28 09:11:35 +02:00
Michael Snoyman
ae79c4db39 yesod-form fixes 2011-12-28 00:07:06 +02:00
Michael Snoyman
7036402b0a Initial cabal file update for 0.10, everything is broken 2011-12-27 15:54:49 +02:00
Tom Streller
c2cb999a8d added german messages 2011-12-27 13:59:35 +01:00
Michael Snoyman
1564a92323 Version bumps 2011-12-26 11:08:13 +02:00
Felipe Lessa
6fdb6d38b2 Fix locations of source repositories on Cabal file.
Packages that still weren't updated:

  - yesod-examples
  - yesod-form
  - yesod-json
  - yesod-persistent
  - yesod-static
2011-12-24 20:35:45 -02:00
Felipe Lessa
d5cc216023 Bump yesod-form's version to 0.3.4.1. 2011-12-24 09:36:58 -02:00
Felipe Lessa
a9d202e0e0 Add Portuguese language to yesod-form. 2011-12-24 09:36:27 -02:00
Michael Snoyman
1d4f1948af Relaxed upper bounds 2011-11-27 15:50:02 +02:00
Greg Weber
6816039b21 Form -> MForm 2011-11-26 10:31:12 -06:00
Greg Weber
6b84fb4b7b DEPRECATED, not DEPRECATE 2011-11-26 09:57:49 -06:00
Greg Weber
c8af14b750 align yesod dependencies 2011-11-23 08:44:47 -06:00
Michael Snoyman
e4fd390cf8 Scaffolding has nicer Form datatype 2011-11-10 21:30:34 +02:00
Pascal Wittmann
837f796993 adjusted existing fields and functions for the new FieldSettings attribute 2011-10-25 17:52:11 +02:00
Pascal Wittmann
bdd0f80083 added (css) class name to FieldSettings 2011-10-25 17:51:23 +02:00
Michael Snoyman
85e825ca90 Fix a warning 2011-10-02 17:14:07 +02:00
Michael Snoyman
bdd27cbcaf Remove some debug output 2011-10-02 17:05:42 +02:00
Rune
d77972ab60 added customErrorMessage to Yesod.Form.Functions to allow the user to overwrite the parse-error messages on fields. 2011-09-22 11:54:32 +03:00
Michael Snoyman
bea386e238 optionsPersist returns an OptionList 2011-09-21 16:37:13 +03:00
Michael Snoyman
d2e93341c0 OptionList 2011-09-20 10:25:26 +03:00
Michael Snoyman
74fbfee1c9 Option (for selectField) 2011-09-19 15:53:41 +03:00
Michael Snoyman
ac74e83e4b Fix for GHC 6.12 2011-09-13 21:10:28 +03:00
Björn Buckwalter
a065862828 Merge branch 'master' of github.com:bjornbm/yesod
Conflicts:
	yesod-form/Yesod/Form/Fields.hs
2011-09-11 12:14:38 +08:00
Björn Buckwalter
9158931915 Reexport FormMessage (..) from Yesod.Form.Fields.
This amendment should make commit
9eef4829ad a non-breaking change, except
possibly causing some warnings about duplicate exports with
Yesod.Form.Types.
2011-09-11 11:45:24 +08:00
Michael Snoyman
cae65c95ff fileAForm* 2011-09-10 23:23:45 +03:00
Björn Buckwalter
392e47e1aa Swedish FormMessages. 2011-09-10 23:06:57 +08:00
Björn Buckwalter
9eef4829ad Factor out English FormMessage rendering. 2011-09-10 22:57:09 +08:00
Greg Weber
130363e9d4 add comment for searchField javascript 2011-08-31 05:37:46 -07:00
Michael Snoyman
9199e0f203 Version bump 2011-08-29 09:27:05 +03:00
Michael Snoyman
d1bb17304a Builds properly with stricter rules 2011-08-28 11:02:32 +03:00
Michael Snoyman
a4bfb2a0ca Mirror naming changes in shakespeare 2011-08-18 17:59:25 +03:00
Greg Weber
aa2256144c version bump xss-sanitize 2011-08-13 06:30:46 -07:00
Greg Weber
ce3c909218 update to xss-sanitize 0.3 2011-08-09 10:24:51 -07:00
Michael Snoyman
3f5c8f1dd3 Move SomeMessage to yesod-core 2011-08-09 19:23:59 +03:00
Michael Snoyman
f6ab5c05dc Everything building with Hamlet 0.10, scaffolding not fixed yet 2011-08-09 16:48:24 +03:00
Michael Snoyman
b65baed9c4 Library bumps 2011-08-09 12:34:03 +03:00
Michael Snoyman
cbbf8dbf6a yesod-form warnings cleanup 2011-08-05 06:29:17 +03:00
Michael Snoyman
f17c1f823d generateForm* 2011-08-05 06:29:06 +03:00
Michael Snoyman
384965dcef yesod-form compiles again 2011-08-03 17:24:44 +03:00
Michael Snoyman
9ea93589e3 Fixed missing i18n 2011-08-03 17:24:44 +03:00
Michael Snoyman
1cd722fe40 Switch to Map 2011-08-03 17:24:44 +03:00
Michael Snoyman
f62f513c63 Major typing overhaul.
Types are less polymorphic and hopefully much easier to use/understand.

Also, introduced SomeMessage existential type, should make field reuse
much simpler.
2011-08-03 17:24:44 +03:00
Michael Snoyman
b7e76ebcd8 Better form validation 2011-08-02 20:19:53 +03:00
Michael Snoyman
dccd17e0ac Officially include MassInput 2011-08-02 19:45:07 +03:00
Michael Snoyman
704b5e742c Updated yesod-form docs 2011-07-28 14:48:59 +03:00
Michael Snoyman
6f5459f70f Add 'yesod-form/' from commit '53b7c3b81015e7f244c6b8961ca2f07979f932e2'
git-subtree-dir: yesod-form
git-subtree-mainline: 41faf62094
git-subtree-split: 53b7c3b810
2011-07-22 08:59:57 +03:00