bootstrap3_form_builder 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00e3e54267918f673f95256a0d402905267dc3eb
|
4
|
+
data.tar.gz: 3700521161c50d132c429b0b4bd2cbfaf25f9b11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4e4ebf8efe180bc3809295352c8f61b935feb104b88465445b30022fbde89e6c61072137942592b1ba40f20327b1b302fa5c4e5e3996f7e500750f6e2a6b2f0
|
7
|
+
data.tar.gz: 4d9170b613ca89a12d462b5af0f62463dc2075079c6742903875c40e9798ad5240c527420abd94de5e91d6e7f25812f59843d93997908a2832cd807eb5cfcd05
|
@@ -28,7 +28,7 @@ Generates form fields that work with Twitter Bootstrap 3.
|
|
28
28
|
set_numericality_options(validators, options)
|
29
29
|
set_format_options(validators, options, method_name)
|
30
30
|
|
31
|
-
if !options[:class]
|
31
|
+
if !options[:class] && method_name != :check_box
|
32
32
|
options[:class] = "form-control"
|
33
33
|
end
|
34
34
|
|
@@ -53,10 +53,10 @@ Generates form fields that work with Twitter Bootstrap 3.
|
|
53
53
|
(options[:help_block] ? @template.content_tag("p", options[:help_block], :class => "help-block") : "" ) +
|
54
54
|
(options[:help_inline] ? @template.content_tag("span", options[:help_inline], :class => "help-inline") : "" )
|
55
55
|
|
56
|
-
if method_name ==
|
56
|
+
if method_name == :check_box
|
57
57
|
return @template.content_tag("div",
|
58
58
|
@template.content_tag("label",
|
59
|
-
input.html_safe),
|
59
|
+
input.html_safe + custom_label),
|
60
60
|
:class => "checkbox")
|
61
61
|
end
|
62
62
|
|