|
3 | 3 | # Components used by the form builder to generate a complete input. You can remove |
4 | 4 | # any of them, change the order, or even add your own components to the stack. |
5 | 5 | # config.components = [ :placeholder, :label_input, :hint, :error ] |
| 6 | + config.components = [ :placeholder, :label_input, :hint ] |
6 | 7 |
|
7 | 8 | # Default tag used on hints. |
8 | 9 | # config.hint_tag = :span |
9 | 10 |
|
10 | 11 | # CSS class to add to all hint tags. |
11 | 12 | # config.hint_class = :hint |
12 | | - |
| 13 | + config.hint_class = "help-inline" |
| 14 | + |
13 | 15 | # CSS class used on errors. |
14 | 16 | # config.error_class = :error |
| 17 | + config.error_class = "help-inline" |
15 | 18 |
|
16 | 19 | # Default tag used on errors. |
17 | 20 | # config.error_tag = :span |
|
30 | 33 |
|
31 | 34 | # You can wrap all inputs in a pre-defined tag. |
32 | 35 | # config.wrapper_tag = :div |
| 36 | + config.wrapper_tag = :div |
| 37 | + |
| 38 | + config.input_wrapper_tag = :div |
| 39 | + config.input_wrapper_class = 'input' |
33 | 40 |
|
34 | 41 | # CSS class to add to all wrapper tags. |
35 | 42 | # config.wrapper_class = :input |
36 | | - |
| 43 | + config.wrapper_class = :clearfix |
| 44 | + |
37 | 45 | # CSS class to add to the wrapper if the field has errors. |
38 | 46 | # config.wrapper_error_class = :field_with_errors |
| 47 | + config.wrapper_error_class = :error |
39 | 48 |
|
40 | 49 | # You can wrap a collection of radio/check boxes in a pre-defined tag, defaulting to none. |
41 | 50 | # config.collection_wrapper_tag = nil |
|
51 | 60 |
|
52 | 61 | # How the label text should be generated altogether with the required text. |
53 | 62 | # config.label_text = lambda { |label, required| "#{required} #{label}" } |
| 63 | + config.label_text = lambda { |label, required| "#{label} #{required}" } |
54 | 64 |
|
55 | 65 | # You can define the class to use on all labels. Default is nil. |
56 | 66 | # config.label_class = nil |
|
0 commit comments