Commit Graph

122 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
Michael Snoyman
28e7a9db23 Persistent 1.2 2013-04-03 09:06:13 +03: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
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
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
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
Michael Snoyman
b4d1b2087c Fix for missing Read instance on Fixed 2012-07-14 21:54:52 +03:00
Michael Snoyman
b9d5890567 Add a type signature 2012-07-13 18:37:42 +03: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
3ecbf43f5d $newline 2012-07-01 20:59:37 +03:00
Michael
4929ece70c Added Ord instance for Textarea 2012-05-31 07:25:53 +03:00
Michael Snoyman
468b013860 Turn on blaze-html 0.5 by default 2012-05-09 09:50:37 +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
Felipe Lessa
a2cb436828 Fix FIXME comment on htmlField (fixes #328). 2012-04-11 08:34:55 -03: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
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
Felipe Lessa
02d3b702aa Small doc fix on Yesod.Form.Fields.Textarea. 2012-03-02 17:32:00 -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
9dd414900e Fix some warnings 2012-01-17 14:25:50 +02:00
Michael Snoyman
4d5c123935 Better multiSelectField (#183) 2012-01-17 14:13:20 +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
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
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
Pascal Wittmann
837f796993 adjusted existing fields and functions for the new FieldSettings attribute 2011-10-25 17:52:11 +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
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
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
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
cbbf8dbf6a yesod-form warnings cleanup 2011-08-05 06:29:17 +03:00
Michael Snoyman
9ea93589e3 Fixed missing i18n 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
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