Commit Graph

15 Commits

Author SHA1 Message Date
José Valim ce19f2b898 Make maxlength a component. 2011-12-04 13:14:39 +01:00
José Valim 5ee02bdd2c Make required a component. 2011-12-04 13:03:09 +01:00
Rafael Mendonça França 46e373a3ce Fix test to fit the described case 2011-12-03 00:39:47 -02:00
Vasiliy Ermolovich 2069b30b10 select can have required option, closes #340 2011-12-01 21:40:01 +03:00
Stephen Ingram fd62add671 Added :readonly as f.input html option
Added the ability to specify :readonly => true to f.input. Works the
same as :disabled. The code is a clone of the code for :disabled.
2011-11-25 23:38:47 -10:00
Jeff Kreeftmeijer 0824802cb1 Add Proc support to CollectionInput 2011-10-26 17:28:15 +02:00
Rafael Mendonça França 7849c86897 Remove repeated tests 2011-09-26 21:36:34 -03:00
Carlos Antonio da Silva 42307c1f3f Do not override attribute value selection in collection select. Closes #325
Conflicts:

	test/inputs_test.rb
2011-09-15 20:20:46 -03:00
Rafael Mendonça França 96275d6241 Extract disabled logic to a helper. Closes #317 2011-09-11 18:53:00 -03:00
Rafael Mendonça França 8dc707a7c2 Add disabled class to disabled input 2011-09-11 18:46:47 -03:00
José Valim c74243aca6 Revert "Browser validations should not affect required."
This reverts commit 85b70152eaa2ab5a163d9fe307f5433d37771397.
2011-09-08 16:04:36 +02:00
José Valim 93bcf58b61 Browser validations should not affect required. 2011-09-08 16:04:36 +02:00
José Valim d744571901 Autofocus is opt-in, do not rely on .html5 then. 2011-09-08 16:04:36 +02:00
José Valim f93a6be226 Add tests for custom wrappers. 2011-09-08 16:04:36 +02:00
José Valim cc72315703 Break inputs_test.rb into many files as well. 2011-09-08 16:04:36 +02:00