simple_form_bootstrap3 0.3.2 → 0.3.3
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: 97e47cd816c1b496af49ac16f4067a58533cbf3c
|
4
|
+
data.tar.gz: 48402dd434343af059cc8a17d21ed9e46f405351
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6dba10f376c231067077ac6b124b18839e6ec0671151ebfc2a5fbada885d6a05957f73a6ef70fbf06acf53958f4a4da974041f35191e4728b8f44334842a10b7
|
7
|
+
data.tar.gz: 51f2447d805ae76ed8925839df10dd80e76d5bae862f8ce9cbe73960d778f07342ecbd9d4cd14ee7ffb008d07485c8f7850a78f2b61786b59074f358d6038198
|
@@ -36,5 +36,20 @@ module SimpleForm
|
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|
39
|
+
|
40
|
+
def collection_radio_buttons(method, collection, value_method, text_method, options = {}, html_options = {}, &block)
|
41
|
+
options[:collection_wrapper_tag] ||= :div
|
42
|
+
options[:collection_wrapper_class] ||= 'form-group'
|
43
|
+
options[:item_wrapper_tag] ||= :div
|
44
|
+
options[:item_wrapper_class] ||= 'radio'
|
45
|
+
|
46
|
+
if block_given?
|
47
|
+
super
|
48
|
+
else
|
49
|
+
super do |input|
|
50
|
+
input.label { input.radio_button + input.text }
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
39
54
|
end
|
40
55
|
end
|
@@ -14,17 +14,13 @@ module SimpleForm
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def collection_check_boxes(method, collection, value_method, text_method, options = {}, html_options = {}, &block)
|
17
|
-
options[:item_wrapper_class] ||= 'col-sm-offset-3 col-sm-9 col-md-offset-3 col-md-9 col-lg-offset-2 col-lg-10'
|
17
|
+
options[:item_wrapper_class] ||= 'col-sm-offset-3 col-sm-9 col-md-offset-3 col-md-9 col-lg-offset-2 col-lg-10 checkbox'
|
18
|
+
super
|
19
|
+
end
|
18
20
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
super do |input|
|
23
|
-
@template.content_tag(:div, class: 'checkbox') do
|
24
|
-
input.label { input.check_box + input.text }
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
21
|
+
def collection_radio_buttons(method, collection, value_method, text_method, options = {}, html_options = {}, &block)
|
22
|
+
options[:item_wrapper_class] ||= 'col-sm-offset-3 col-sm-9 col-md-offset-3 col-md-9 col-lg-offset-2 col-lg-10 radio'
|
23
|
+
super
|
28
24
|
end
|
29
25
|
end
|
30
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_form_bootstrap3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuriy Kolodovskyy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bootstrap-sass
|