Commit Graph

30 Commits

Author SHA1 Message Date
Rafael Mendonça França 54acfe7135 Failing test to issue #341 2011-12-02 23:49:37 +03:00
Vasiliy Ermolovich b683b21bf7 simple_fields_for inherites wrapper option from the parent form, closes #357 2011-11-27 13:46:08 +03:00
Carlos Antonio da Silva f4c05f1d7b Use strings for css classes in tests 2011-11-07 17:03:51 -02:00
Massimiliano Filacchioni 853e4ef7c4 Use both configured and given collection_wrapper_class 2011-10-20 13:48:59 +02:00
Massimiliano Filacchioni 082cbe28a6 Allow to set the class for collection_wrapper_tag 2011-10-10 19:06:53 +02:00
Rafael Mendonça França 8f7bfcadee Refactored the code to remove the item_wrapper and collection_wrapper with nil value. Closes #291 2011-07-27 12:15:32 -03:00
Douglas Waltman II fd5f68615d Previous form and collection tag logic was causing tests to fail. Updated logic and wrote additional tests for explicitly false collection wrapper tags and item wrapper tags. 2011-07-26 11:45:36 -07:00
Rafael Mendonça França 14b6263ee2 Fix bug when simple_fields_for is used with a hask like model and improve coverage.
Thanks to https://github.com/spohlenz for figuring this out in the Rails code.
See more: https://github.com/rails/rails/pull/1778
2011-07-19 12:25:40 -03:00
Rafael Mendonça França aa3055ee0b Wrap collection items in a span tag not div.
span tag is inline by default
2011-04-06 00:33:41 -03:00
Rafael Mendonça França 07b5e87b62 Fixes test descption changed on the last commit 2011-04-06 00:18:39 -03:00
Rafael Mendonça França 4b216eb62c Wrap collections items in a div, not in the label.
Label and input are now on the same level.
2011-04-06 00:12:07 -03:00
Carlos Antonio da Silva 42d16bf483 Update changelog, cleanup some whitespaces and move tests to form builder test 2011-04-05 21:46:36 -03:00
Roel van Dijk 81e3609c3b Fixed bug in MapType module when subclassing FormBuilder. 2011-04-06 08:37:14 +08:00
Carlos Antonio da Silva b5f266726d The tests makes more sense under the builder 2011-03-01 23:05:58 -03:00
Carlos Antonio da Silva af622e4c2b Add collection wrapper tag and item wrapper tag configs
These configurations allow us to wrap the entire or each item in the
collection of radio/check boxes using the specified tags, respectively.
2010-11-21 15:12:50 -02:00
Rafael Mendonça França a02f805ddf Move tests for proper location 2010-10-28 17:56:49 +08:00
Carlos Antonio da Silva 1aa6f48d3f Ensure camelized values are downcased to create labels in collection helpers (check box/radio) 2010-10-12 15:57:38 -03:00
Carlos Antonio da Silva 25903afb1a Cleanup builder tests 2010-09-26 19:39:02 -03:00
Carlos Antonio da Silva f570602c09 More concat cleanup on tests 2010-09-26 19:39:02 -03:00
Carlos Antonio da Silva 146d18e6f8 Cleanup tests removing calls to concat 2010-09-26 19:39:02 -03:00
Wojciech Wnętrzak 736df6f3b9 make tests pass on ruby 1.9.2 2010-06-18 06:28:26 +08:00
José Valim 1c89943d55 Make tests green with Rails master. 2010-03-16 10:41:45 +01:00
José Valim 0c0e632433 Tests pass. 2010-01-09 18:12:52 +01:00
José Valim 42830967d7 Most of refactoring done. 2010-01-09 15:39:14 +01:00
José Valim 042c746264 Oops. 2009-12-11 14:42:44 -02:00
José Valim 8a252d538e Make check_box work properly with nested forms. 2009-12-11 14:37:33 -02:00
Carlos Antonio da Silva 9000830e19 Adding collection checkbox, adding checked and disabled options for collection radio and fix association name when dealing with has_*. 2009-12-11 13:09:00 -02:00
Carlos Antonio da Silva e2519a421c Change label class from collection_radio to ensure we do not have conflicts with component label 2009-12-10 22:07:13 -02:00
Carlos Antonio da Silva aabeacf40b Initial support to simple_fields_for and simple_remote_form_for 2009-12-10 08:44:34 -02:00
Carlos Antonio da Silva 94e30ce70b Refactoring tests based on components changes. 2009-12-09 20:36:21 -02:00