Commit Graph

507 Commits

Author SHA1 Message Date
Michael Snoyman
cc612db73f text 0.11 2010-11-30 20:44:24 +02:00
Michael Snoyman
ee5c8da8c9 Using blaze writeHtmlEscapedChar for Textarea 2010-11-30 09:09:46 +02:00
Michael Snoyman
ac809e8316 Fix runFormTable HTML output 2010-11-30 09:09:31 +02:00
Michael Snoyman
24669f8d38 sendResponseStatus and sendResponseCreated 2010-11-28 21:44:09 +02:00
Aaron Culich
37ff175ede added missing import of Language.Haskell.TH required for normalB 2010-11-25 11:25:29 -08:00
Michael Snoyman
93f934eb97 comments for mkEmbedFiles and getStaticHandler
Conflicts:

	Yesod/Helpers/Static.hs
2010-11-23 06:19:25 +02:00
Matt Brown
a7eae5413e mkYesodSubData, mkYesodSubDispatch 2010-11-22 20:58:45 +02:00
Michael Snoyman
d15368065f passwordField 2010-11-22 07:47:53 +02:00
Michael Snoyman
967ad7ec80 Blacklist -> whitelist for staticFiles 2010-11-21 20:21:48 +02:00
Michael Snoyman
cc09c071a6 Minor fixes 2010-11-19 12:02:11 +02:00
Michael Snoyman
92ab8ee889 GHC 7 support.
GHC 7 changes the syntax for quasi-quotation. A later patch release
(7.0.2) should be adding back backwards-compatibility with the old
syntax, but in the meanwhile this (relatively ugly) hack should fix it.
2010-11-19 11:10:17 +02:00
Michael Snoyman
aaed6875c2 Fix mismatch between joinPath and splitPath 2010-11-19 11:10:12 +02:00
Matt Brown
99fed5a53c remove runSubHandler, using modified version of toMasterHandler instead 2010-11-19 07:30:37 +02:00
Matt Brown
5e4c0d0170 moved YesodSubRoute to Yesod.Handler; added runSubHandler, addSubWidget 2010-11-19 07:30:37 +02:00
Michael Snoyman
ae69262ab3 runFormPostTable -> runFormTable 2010-11-16 10:33:23 +02:00
Michael Snoyman
0b5b132fa3 runFormPostTable and runFormPostDivs 2010-11-15 22:37:28 +02:00
Michael Snoyman
f80cfab5d7 Cookie expire dates fixed 2010-11-14 16:28:30 +02:00
Michael Snoyman
125090aebb blaze-builder 0.2 2010-11-10 09:41:42 +02:00
Michael Snoyman
82bab0c084 fileField and maybeFileField 2010-11-05 09:25:59 +02:00
Michael Snoyman
97819f0ad7 atomLink and sanitizeBalance 2010-11-02 13:17:37 +02:00
Michael Snoyman
b1a9832907 Exposing ErrorResponse 2010-10-28 12:54:18 +02:00
Michael Snoyman
3581fa957c Fix getMessage 2010-10-27 18:05:06 +02:00
Michael Snoyman
f0ba72d536 Using mkMigrate in scaffolding 2010-10-26 15:57:05 +02:00
Michael Snoyman
d3a9201b27 getSession 2010-10-26 15:57:05 +02:00
Michael Snoyman
300f0a4f4d dataenc -> base64-bytestring 2010-10-26 15:57:04 +02:00
Michael Snoyman
1069df2665 State for session 2010-10-26 15:57:04 +02:00
Michael Snoyman
05b4d3e9ce sessionIpAddress 2010-10-26 15:57:04 +02:00
Michael Snoyman
51943f9a11 runFormPostNoNonce 2010-10-26 15:57:04 +02:00
Michael Snoyman
0fc2cccfef generateForm produces nonce hidden field 2010-10-26 15:57:04 +02:00
Michael Snoyman
1a752d4343 Nonce for CSRF protection 2010-10-26 15:57:04 +02:00
Michael Snoyman
2fef1766f4 staticFiles ignores tmp 2010-10-26 15:57:04 +02:00
Michael Snoyman
17cb10c312 Major renaming of widget functions 2010-10-26 15:57:04 +02:00
Michael Snoyman
fd10f42db7 generateForm 2010-10-26 15:57:04 +02:00
Michael Snoyman
07a5350e5b Removed Yesod.WebRoutes 2010-10-26 15:57:04 +02:00
Michael Snoyman
c35c935418 Doc cleanup, especially forms 2010-10-26 15:57:04 +02:00
Michael Snoyman
6e43ea5fc3 Document caveat in setSession 2010-10-26 15:57:04 +02:00
Michael Snoyman
0b4de794e8 Removed utf8-string dep 2010-10-26 15:57:04 +02:00
Michael Snoyman
c29f5af95c Support for free-forms
This adds a whole bunch of polymorphism to the forms library, and opens
up a monad approach which exposes the FieldInfos generated. This allows
you to layout your form however you want without mucking around with
guessing the location of the fieldinfos in a list.
2010-10-26 15:57:03 +02:00
Michael Snoyman
b930bcbf62 Removed Yesod.Mail 2010-10-26 15:57:03 +02:00
Michael Snoyman
ab4c7e3ae2 MonadInvertIO 2010-10-26 15:57:03 +02:00
Michael Snoyman
2f61ef6d39 fieldsToDivs 2010-10-26 15:56:40 +02:00
Michael Snoyman
c242af6d0e required/optional css class for fieldsToTable 2010-10-26 15:56:40 +02:00
Matt Brown
6119f8507e added fiRequired :: Bool to FieldInfo 2010-10-26 15:56:40 +02:00
Michael Snoyman
370dad86df Remove Auth module 2010-10-26 15:56:40 +02:00
Michael Snoyman
27a63b1b75 JqueryDaySettings 2010-10-26 15:56:11 +02:00
Michael Snoyman
eaffbb93ff mkToForm takes undefined instead of lists of EntityDef 2010-10-26 15:56:11 +02:00
Michael Snoyman
6d326855d9 Removed Widget alias, defined by scaffolder now 2010-10-26 15:56:11 +02:00
Michael Snoyman
9158268904 finallyHandler 2010-10-14 16:47:02 +02:00
Michael Snoyman
1708d804ea Added Handler finally test case (fails) 2010-10-14 16:10:11 +02:00
Michael Snoyman
881fab7ff0 Cache-Control and Expires header function 2010-10-13 15:52:52 +02:00
Michael Snoyman
fde19d6291 googleHostedJqueryUiCss 2010-10-13 15:26:55 +02:00
Michael Snoyman
fd53c60fc9 Removed fiName 2010-10-12 13:28:06 +02:00
Michael Snoyman
3052bad1c1 Doubles do not use type=number 2010-10-11 16:53:25 +02:00
Michael Snoyman
4451378c5d maybeIntInput 2010-10-10 13:05:06 +02:00
Michael Snoyman
0c611f58fd Some FIXMEs 2010-10-10 10:28:00 +02:00
Michael Snoyman
7377919f6c checkField 2010-10-07 23:34:02 +02:00
Michael Snoyman
7e95ce974d Added redirectToPost 2010-10-07 09:22:29 +02:00
Michael Snoyman
2a04410571 Include message in default site template 2010-09-28 14:26:45 +02:00
Michael Snoyman
7064e8bdcc Sanitizing HTML input 2010-09-28 10:03:49 +02:00
Michael Snoyman
00a01936d4 hamlet 0.5.1 2010-09-26 13:44:13 +02:00
Michael Snoyman
60fab19ef6 Using web-routes again (version 0.23) 2010-09-24 05:10:57 +02:00
Michael Snoyman
b13c08f001 Revert "EscapedHtml"
This reverts commit d7832b0535.
2010-09-20 07:26:34 +02:00
Michael Snoyman
d7832b0535 EscapedHtml 2010-09-15 11:44:42 +02:00
Rehno Lindeque
3edbd38168 Added some documentation for StaticRoute. (Needs to be checked...) 2010-09-14 11:48:25 +02:00
Michael Snoyman
d55c78dc19 Minor bug fixes 2010-09-02 00:56:14 +03:00
Michael Snoyman
3affc81c52 Fixed mkToForm 2010-08-31 08:21:49 +03:00
Michael Snoyman
c4c3d0b10d getFacebookUrl function 2010-08-27 15:05:58 +03:00
Michael Snoyman
7e4ec40779 Authentication included in scaffolded site 2010-08-27 14:40:07 +03:00
Michael Snoyman
465366766b Unified Auth login page 2010-08-27 13:09:43 +03:00
Michael Snoyman
a03cc7cff8 Cleaned up auth module 2010-08-26 14:14:43 +03:00
Michael Snoyman
86653cd8f5 Beginning of major refactoring of Auth helper 2010-08-26 00:14:42 +03:00
Michael Snoyman
fc0fed4c14 Removed Handler type synonym 2010-08-25 15:34:33 +03:00
Michael Snoyman
b0c2bf0a3b julius $ -> % 2010-08-25 09:13:57 +03:00
Michael Snoyman
f102b9882b defaultLayout now works directly on widgets 2010-08-22 16:08:58 +03:00
Michael Snoyman
21becc6bda randomKey in Auth uses randomString from Mail 2010-08-20 10:37:27 +03:00
Michael Snoyman
53c2a2f49a Included experimental Yesod.Mail 2010-08-20 09:01:58 +03:00
Michael Snoyman
c7ddc8415d Imported all web-routes dependencies 2010-08-19 21:04:35 +03:00
Michael Snoyman
6bef4e5018 Auth -> Auth master 2010-08-19 09:45:07 +03:00
Michael Snoyman
f7dc45eb9e addJavaScript -> addJavascript 2010-08-18 07:15:12 +03:00
Michael Snoyman
adc8a8cf63 Textarea 2010-08-18 07:06:13 +03:00
Michael Snoyman
24e6806cde Bug fixes for last change 2010-08-18 00:01:03 +03:00
Michael Snoyman
799ee875f6 Minor fixes for the auth module 2010-08-17 23:58:29 +03:00
Michael Snoyman
cfffdd9cb3 Hiding lift in Static 2010-08-17 17:33:51 +03:00
Michael Snoyman
bca6317490 GForm uses ReaderT 2010-08-16 14:48:38 +03:00
Michael Snoyman
2cefc3c2a7 Form minor changes, setMessage not polymorphic 2010-08-15 11:23:46 +03:00
Michael Snoyman
476926cb68 Added checkForm 2010-08-15 01:02:15 +03:00
Michael Snoyman
d0f1c60b63 Added UTF8 path tests 2010-08-14 21:50:56 +03:00
Michael Snoyman
2e4adb5551 jQuery and Nic fixes 2010-08-13 17:29:13 +03:00
Michael Snoyman
b5fa539f1b Remove fpHamlet 2010-08-13 17:16:50 +03:00
Michael Snoyman
a609f2d046 Remove need to mapFormXml externally 2010-08-13 16:28:17 +03:00
Michael Snoyman
c7ac7f191c Minor rearranging and renaming 2010-08-13 16:24:51 +03:00
Michael Snoyman
2a19d1a4e8 Split Yesod.Form into subfiles 2010-08-13 16:11:22 +03:00
Michael Snoyman
280aa5d543 Foundations for multiForm.
Instead of a single integer, we store a list of integers in a form. This
allows nesting. Now there are some auxilary functions for nesting level
manipulation, as well as a Monoid instance for FormResult.
2010-08-13 15:39:15 +03:00
Michael Snoyman
95392aba0a Minor code cleanup 2010-08-13 15:38:24 +03:00
Michael Snoyman
cc102b67d9 IsString instance for FormFieldSettings 2010-08-13 15:31:42 +03:00
Michael Snoyman
1a273387d6 Added urlField 2010-08-12 11:41:18 +03:00
Michael Snoyman
13d3d020a7 Shorter URLs for static hashes 2010-08-11 15:03:25 +03:00
Michael Snoyman
b11a05d9eb ToHtml for setMessage 2010-08-11 15:03:08 +03:00
Michael Snoyman
4d0be9f672 base64md5 2010-08-11 14:03:53 +03:00
Michael Snoyman
db3b29f6b0 cassius and julius 2010-08-11 07:52:38 +03:00
Michael Snoyman
90a56784eb Tests build again 2010-08-09 17:53:33 +03:00
Michael Snoyman
2f3a0effff Removed inefficient builder-to-lbs calls 2010-08-09 17:48:59 +03:00
Michael Snoyman
02fd6bfffd Removed blaze-html 2010-08-09 16:59:25 +03:00
Michael Snoyman
6b8eb05ae1 Minor refactorings 2010-08-08 23:55:34 +03:00
Michael Snoyman
0ce3740c64 query string 2010-08-08 15:15:37 +03:00
Michael Snoyman
5190a5eabb addStaticContent 2010-08-08 12:48:08 +03:00
Michael Snoyman
a9a3730731 Camlet and Jamlet 2010-08-08 10:48:32 +03:00
Michael Snoyman
ce25f03e79 setUltDest' sets query string as well 2010-08-06 14:03:18 +03:00
Michael Snoyman
191b406fd5 joinPath 2010-08-04 23:07:27 +03:00
Michael Snoyman
9fada88b6e Configurable splitPath 2010-08-04 21:35:03 +03:00
Michael Snoyman
faf2669d63 Added textarea and hidden (hidden needs work) 2010-08-04 17:36:10 +03:00
Michael Snoyman
39818c8f57 Error handlers get Nothing for current route 2010-08-04 11:00:43 +03:00
Michael Snoyman
1aa19bcf92 isAuthorized takes a isWrite parameter 2010-07-27 16:35:53 +03:00
Michael Snoyman
46be96e6c2 Split jquery and nic code into separate modules 2010-07-26 15:55:35 +03:00
Michael Snoyman
9392665491 getSuperclass is part of toFormField 2010-07-26 15:38:39 +03:00
Michael Snoyman
257bad8874 Fixed reversed id and name 2010-07-26 14:42:41 +03:00
Michael Snoyman
50fa02953e Some convenience functions and bugfixes 2010-07-26 12:47:42 +03:00
Michael Snoyman
74e1c8cbf9 superclass in mkToForm 2010-07-26 12:18:57 +03:00
Michael Snoyman
1c6f8fb46c FormFieldSettings 2010-07-26 12:01:18 +03:00
Michael Snoyman
55e4771104 Fixed bug in boolInput 2010-07-24 22:34:08 +03:00
Michael Snoyman
e6dc40d582 Fixed auth module 2010-07-22 13:03:07 +03:00
Michael Snoyman
0db163aea8 ToForm and ToFormField take master site param 2010-07-22 12:27:26 +03:00
Michael Snoyman
71c8355698 URL settings in Yesod typeclass 2010-07-22 07:25:36 +03:00
Michael Snoyman
4b2b14e3ac Added intInput 2010-07-21 09:41:45 +03:00
Michael Snoyman
2391995622 URLs are modifiable via IORefs 2010-07-21 08:18:34 +03:00
Greg Weber
83057e1a5f add jqueryDayTimeField for a datetime field widget 2010-07-20 13:33:49 -07:00
Michael Snoyman
d4333814f7 Parsing toFormField attribute, dropping Form newtype wrappers 2010-07-20 22:14:07 +03:00
Michael Snoyman
a0bc2a1d21 persistent 0.2.0 2010-07-20 16:54:54 +03:00
Greg Weber
8ca2f3e2b4 derive standard classes for JqueryDay field 2010-07-16 11:20:57 -07:00
Michael Snoyman
cb51f4fa8e Added liftHandler function 2010-07-15 18:05:44 +03:00
Michael Snoyman
839efad98b False instead of True in Crud 2010-07-15 01:35:34 +03:00
Michael Snoyman
db7dfcbefd Added Html' and get404 2010-07-13 11:17:25 +03:00
Michael Snoyman
d8ece1db78 Updated documentation 2010-07-13 09:36:20 +03:00
Michael Snoyman
e2eb7d3315 Migrated to WAI 0.2 2010-07-13 00:12:59 +03:00
Michael Snoyman
d5704fb65d E-mail validation via email-validate 2010-07-11 10:12:33 +03:00
Michael Snoyman
93d71a4779 Added email field 2010-07-11 10:05:05 +03:00
Michael Snoyman
ecd39ed587 Added jsonRaw function 2010-07-11 07:25:56 +03:00
Michael Snoyman
9f75a77fcc Unwrapped type for jqueryDayField et al 2010-07-10 22:15:24 +03:00
Michael Snoyman
0f1378a013 Widgets only create script and style tags when necessary 2010-07-10 21:56:35 +03:00
Michael Snoyman
2c0434c431 Added addJavaScript for widgets 2010-07-10 21:48:16 +03:00
Michael Snoyman
7d273861e2 Better doc for setSession 2010-07-10 21:44:10 +03:00
Michael Snoyman
a14f232f18 New sig for basicHandler 2010-07-09 15:21:46 +03:00
Michael Snoyman
43494c0557 Setting ultimate dest with the isAuthorized function 2010-07-07 22:55:17 +03:00
Michael Snoyman
d6509266f4 Fix optionalFieldHelper 2010-07-07 17:20:24 +03:00
Michael Snoyman
2a71c7ab9b Unified fields and inputs 2010-07-07 07:12:04 +03:00
Michael Snoyman
9fde607bd8 Fancy form widgets 2010-07-07 06:21:32 +03:00
Michael Snoyman
5354c03a2c Autocomplete form widget 2010-07-06 22:36:20 +03:00
Michael Snoyman
5d8ee5e7fb Renamed Routes to Route 2010-07-06 20:17:00 +03:00
Michael Snoyman
32ef86c295 AuthResult 2010-07-06 12:59:39 +03:00
Michael Snoyman
ef7d27df7c Renamings in Form 2010-07-06 10:42:58 +03:00