Michael Snoyman
2187c0cf8d
Add required to textareaField ( fixes #817 )
2014-09-01 07:19:15 +03:00
Michael Snoyman
8b2297adf4
Conditional support for persistent2 branch.
...
Pinging @gregwebs. I've backported the relevant tweaks on the yesod-1.4
branch, to allow master to compile against persistent2. Whenever you're
ready to release persistent2, we can:
1. Release persistent2.
2. Release new versions of yesod packages, which will work with
persistent 1.3 and 2.0.
3. Add an upper bound in Stackage to avoid using the new persistent
libraries until they're ready for primetime.
4. Release your blog post.
yesod-1.4 should then remove the CPP here and only work with
persistent2; the biggest "breaking change" in the 1.4 release will be
remove backwards compatibility hacks for persistent, conduit,
shakespeare, and wai.
2014-08-27 11:16:08 +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
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
3f4a870b86
Workaround for GHC 7.8.1 regression
2014-04-09 20:49:03 +03: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
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
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
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