1
0
Fork 0
mirror of https://github.com/heartcombo/simple_form.git synced 2022-11-09 12:19:26 -05:00
Commit graph

21 commits

Author SHA1 Message Date
Lucas Mazza
a92d846f62 Use lookup_model_names instead object_name.
b5f2ea420d (commitcomment-1959017)
2012-10-07 22:09:57 -03:00
Lucas Mazza
b5f2ea420d Generates additional wrapper class based on object + attribute name,
like `<div class='input string user_name'>`.

Closes #576
2012-10-07 00:35:35 -03:00
Vasiliy Ermolovich
4c5a5b9fbc add config for wrapper mappings.
This should be a hash containing an input type as key and the wrapper
that will be used for all inputs with specified type

config.wrapper_mapings = { :string => :string_wrapper }
2012-09-07 22:11:56 +03:00
Paul Kmiec
4cb4a5ed5d prevent generating class="" 2012-06-29 12:53:32 -07:00
Carlos Antonio da Silva
756b4f1c8d Only dup html options if they're given, change test description 2012-04-21 19:41:44 -03:00
Rafael Mendonça França
4c084bf6e0 Use the test helpers 2012-04-21 09:57:27 -03:00
Rafael Mendonça França
359f481f88 Add failing case for html options duplicated
Closes #488.
2012-04-21 09:55:30 -03:00
José Valim
b9a568d149 Ensure wrap_with without a tag works. 2012-02-18 15:47:02 +01:00
Carlos Antonio da Silva
f1edb15ac8 Tidy up, add changelog 2012-02-16 22:36:34 -02:00
Vasiliy Ermolovich
40a0b2a7c5 add field_with_hint class to the input with hint wrappers, closes #323 2012-01-09 22:34:37 +03:00
Rafael Mendonça França
b1708e241a Add test to not use top-level wrapper. Closes #359 2011-11-09 20:02:59 -02:00
Fabio Yamate
b8939a17bf Small clean up. 2011-09-27 00:59:06 -03:00
Fabio Yamate
f1b9d2dfc3 Force wrappers name as symbols. 2011-09-26 23:44:10 -03:00
Fabio Yamate
f8095800ec Raise error when fails to find a given wrapper. 2011-09-26 23:44:10 -03:00
Rafael Mendonça França
8dc707a7c2 Add disabled class to disabled input 2011-09-11 18:46:47 -03:00
José Valim
b53cb5e21a Add a test for directly passing the custom wrapper. 2011-09-08 16:04:37 +02:00
José Valim
1867275551 Provide named helpers. 2011-09-08 16:04:37 +02:00
José Valim
bf4d766fcb config.components => config.wrappers 2011-09-08 16:04:37 +02:00
José Valim
da5e1d82be Remove deprecated stuff and raise an exception if any of the old methods are used. Point to the wiki page with update instructions. 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
3ee59b5d0d Break form builder test into smaller files. 2011-09-08 16:04:36 +02:00