Commit Graph

12 Commits

Author SHA1 Message Date
Ben Sima
56ca6d7914 Move 'addClass' to Yesod.Form.Functions and add 'removeClass'
'addClass' is more general than just Bootstrap forms. In particular, it is
copied into the yesod-form-bootstrap4 project and I found myself using it in my
custom forms. It would be useful to have it exported for use elsewhere.

I added 'removeClass' because I needed it while creating a custom 'readonly'
input in a form and thought it might be generally useful.
2018-05-11 13:23:31 -07:00
Michael Snoyman
6830a9840c
Merge branch 'better-monads' into no-transformers 2018-01-17 06:43:52 +02:00
silky
6ec02a917f Add error class when help text is an error. 2015-12-23 16:00:37 +11:00
Maximilian Tagher
2d31b3155d Improves code formatting
* Fixes bug where @<button>@ was being treated as a Haskell function reference
* Uses '<*' instead of @<*@, since <* is a Haskell function (though this doesn't appear to make the link work)
2014-11-22 17:23:12 -08:00
Maximilian Tagher
f4e8ac9496 Fix usages of bootstrapSubmit 2014-11-22 17:04:48 -08:00
Maximilian Tagher
f84e9703ed Revision 1 of Bootstrap 3 documentation 2014-11-22 16:27:23 -08:00
Maximilian Tagher
5038bea627 Document Yesod.Form.Bootstrap3 2014-11-21 20:17:55 -08:00
Felipe Lessa
a7a7764c97 Do not display FormFailures as they contain duplicates of field failures. 2014-03-12 10:27:46 -03:00
Felipe Lessa
51fbc2a57b Use correct error classes on Bootstrap3 module. 2014-03-12 10:14:04 -03:00
Felipe Lessa
e44b93083a Smarter with{Small,Large}Input, do not override existing classes. 2014-03-11 17:45:59 -03:00
Felipe Lessa
4366dbc05f Bump yesod-form to version 1.3.8. 2014-03-11 17:10:54 -03:00
Felipe Lessa
12a527a9d5 New Yesod.Form.Bootstrap3 module.
The original renderBootstrap code was heavily modified by
Mladen Srdic [1].  I took his code and modified it as well,
and the result is this commit.

[1] https://www.fpcomplete.com/user/msrdic/bootstrap-3-forms-with-yesod-1
2014-03-11 17:08:41 -03:00