Commit Graph

117 Commits

Author SHA1 Message Date
Eric Easley
d99de61554 Use CPP to maintain backward compat 2016-04-18 10:03:39 -07:00
Eric Easley
8e71f766b5 Use PersistRecordBackend constraint synonym 2016-04-15 21:25:40 -07:00
Eric Easley
02dcb99cad Merge remote-tracking branch 'upstream/master' 2016-03-31 13:03:47 -07:00
Maximilian Tagher
3b9e782988 Fix W3 multiple attribute link 2016-03-28 12:33:25 -07:00
Eric Easley
1dea0ef5b1 Adjust yesod-form for split DB 2016-02-07 19:15:57 -08:00
Andrew Martin
a2f4cc41fd Add Functor instance for Option and OptionList 2015-10-27 11:28:40 -04:00
Michael Snoyman
f9e3e961b2 Merge pull request #877 from MaxGabriel/documentFieldsOptions
Document the Options section of Fields.hs
2014-11-29 17:58:40 +02:00
Maximilian Tagher
5e6846d572 Finish documenting fields 2014-11-28 13:22:06 -05:00
Maximilian Tagher
1a38a74424 docs wip 2014-11-28 13:10:29 -05:00
Michael Snoyman
4f7180ea2d Version bumps/docs 2014-11-28 08:00:18 +02:00
Maximilian Tagher
222c9e3c99 Adds timeFieldTypeText and timeFieldTypeTime. Deprecates 'timeField'
* Also documents all 3 functions
2014-11-25 10:56:30 -05:00
Maximilian Tagher
33d9f5e18c Support different types for timeField 2014-11-25 10:36:34 -05:00
Maximilian Tagher
1944f02c84 Add type="time" to timeField 2014-11-25 10:34:46 -05:00
Maximilian Tagher
8e025c8226 Further improvements 2014-11-24 23:25:39 -05:00
Maximilian Tagher
af63a60c69 More stuff 2014-11-24 19:58:36 -05:00
Maximilian Tagher
07090ccb7e Document Fields.hs WIP 2014-11-24 14:11:25 -05:00
Maximilian Tagher
dd6a184052 Allow textareaFields to have a required attribute
(Just like `htmlField` does)
2014-10-10 18:07:33 -07:00
Michael Snoyman
ccab062f2d Remove all conditional compilation for Yesod 1.4 release
Left in for GHC-bundled libraries (ghc, base, bytestring, binary)
2014-09-07 18:17:45 +03:00
Michael Snoyman
3478841d15 Add required to textareaField (fixes #817) 2014-09-01 07:18:42 +03:00
Michael Snoyman
e6eae8ee5a Merge remote-tracking branch 'origin/master' into yesod-1.4
Conflicts:
	yesod-routes/Yesod/Routes/Parse.hs
	yesod-routes/test/Hierarchy.hs
	yesod-routes/yesod-routes.cabal
2014-07-26 21:20:31 +03:00
Michael Snoyman
027dfa9d91 Miss qualified function usage 2014-07-24 10:28:23 +03:00
Michael Snoyman
2d54a5df13 Don't ignore leftovers in parsing #780 2014-07-24 10:21:06 +03:00
Michael Snoyman
0a3ae4ef66 Merge remote-tracking branch 'origin/master' into yesod-1.4 2014-06-01 16:12:36 +03:00
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
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
3f4a870b86 Workaround for GHC 7.8.1 regression 2014-04-09 20:49:03 +03: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
Satoshi Nakamura
09caea1e49 Remove an extra backslash 2014-03-17 19:35:51 +09: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
84baab6fb5 Merge remote-tracking branch 'origin/simpler-dispatch' into persistent2-simpler-dispatch 2014-03-04 13:47:21 +02: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
Ilya Smelkov
d500468b8d Change doubleField type from text to number 2014-01-13 23:27:22 +04: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
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