ciukstar
773c815b90
Add datetimeLocalField
2023-08-31 03:46:20 +03:00
Yuriy Syrovetskiy
b841e8cf0b
Fix according to Bootstrap 3 docs
2022-10-05 20:21:03 +02:00
Jappie Klooster
25f83fb73d
Add withRadioField a more flexible radio option renderer
...
This re-expresses radioField into the new more flexible
function.
Which gives an adhoc example on how to use it as well.
This function passes the radio input to a callback function
to let said function decide how it should be rendered.
These changes allow you to make a radio table for example,
for selecting some row.
bump version number, add @since
add note on radioField
Update changelog
2022-08-17 10:28:42 +02:00
Sergiu Starciuc
48d05fd6ab
Color field ( #1748 )
...
This PR adds a new colorField function to create an html color field (<input type="color">) as described at https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input/color
2022-03-02 17:49:09 +01:00
Jakob Schöttl
7ffff25326
Add some type annotations
2021-04-14 09:40:34 +02:00
Jakob Schöttl
e3a95bd92c
Simplify code, fix linter warnings
2021-04-14 09:40:21 +02:00
Jakob Schöttl
848da5ff12
Bump version and fix old version comments
2021-04-14 09:39:13 +02:00
Jakob Schöttl
c6f44d47b9
Also export this helper
2021-04-13 22:22:26 +02:00
Jakob Schöttl
2998849e99
Fix comments
2021-04-13 22:16:29 +02:00
Jakob Schöttl
829b5af62c
Fix implementation of instance Functor OptionList
2021-04-13 21:58:40 +02:00
Jakob Schöttl
993de7fa86
Add selectFieldGrouped
2021-04-13 09:57:50 +02:00
Jakob Schöttl
daf977fdb1
Use standard function forM_
2021-04-10 11:42:04 +02:00
Nickolay Kolev
073c9fabd4
Do not lose selected value in selectFieldHelper when validation fails
2018-07-26 20:44:26 +02:00
Michael Snoyman
c1344a577f
Fix version bump
2018-07-09 13:12:40 +03:00
pythonissam
0b261f5073
Exposed 'selectFieldHelper'
2018-06-17 08:40:55 +00:00
pythonissam
67d215d2f2
Make Textarea derive IsString
2018-06-03 08:18:31 +00:00
Michael Snoyman
6830a9840c
Merge branch 'better-monads' into no-transformers
2018-01-17 06:43:52 +02:00
Michael Snoyman
aa5b80d9f8
Merge branch 'addTypeTime2' of https://github.com/MaxGabriel/yesod into better-monads
2018-01-12 00:19:54 +02:00
Michael Snoyman
a17779b12d
Fix persistent < 2.5 code
2017-07-23 16:53:12 +03:00
ncaq
e19d220f61
fixed: import Data.Monoid for old ghc
2017-06-23 12:14:28 +09:00
ncaq
d5eb1ce026
fixed: yesod-form: textareaField: writeHtmlEscapedChar: convert "\r\n" to "<br>"
2017-06-22 10:05:39 +09:00
rkaminsk
d8919c2c2d
remove value attribute from password field ( #1374 )
...
remove value attribute from password field
Fixes https://github.com/yesodweb/yesod/issues/1373
2017-04-09 06:14:39 +05:30
Michael Snoyman
aefd074efa
Cleanup GHC 8 redundant constraints
2017-02-05 13:35:12 +02:00
Michael Snoyman
3dc2d10b30
Compile with -Wall -Werror
2017-02-05 12:09:18 +02:00
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
ce74e23d87
timeField now uses type="time"
...
* Also removes deprecation from `timeField`
* Also mildly discourages using `timeFieldTypeText`
2014-11-28 15:57:01 -05: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