simple_form_extension 1.3.22 → 1.3.23
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: 1ba913b639f6114ae675e258ecc87c2573301d66
|
4
|
+
data.tar.gz: 79e0717e743f58193bb99e29175fa4d4607aa2a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2e3e1c5c4a8d020a36f21014e4c6cb03b8b52b4368cc1bdd799fd547c7ba5233f9585b0a88236d0861542d185a1f1574d942090343545fcdc3d6208e9c8ce70
|
7
|
+
data.tar.gz: 0818d72b1f2987d99558ec9f16cc254a3cdf1097d220cb8a65cb223dee46af2ea64765e83fa9409b297f65fe8a6973e3266933834d9f67a19b0a3de38301b70d
|
data/lib/generators/simple_form_extension/templates/config/initializers/simple_form_extension.rb
CHANGED
@@ -38,11 +38,11 @@ SimpleForm.setup do |config|
|
|
38
38
|
b.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
39
39
|
b.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
40
40
|
end
|
41
|
-
|
41
|
+
|
42
42
|
config.wrappers :label_popover, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
43
43
|
b.use :html5
|
44
44
|
b.use :placeholder
|
45
|
-
|
45
|
+
|
46
46
|
b.wrapper tag: 'div', class: 'label-wrapper' do |label|
|
47
47
|
label.use :label, class: 'control-label'
|
48
48
|
label.use :popover
|
@@ -54,9 +54,15 @@ SimpleForm.setup do |config|
|
|
54
54
|
ba.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
55
55
|
end
|
56
56
|
end
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
57
|
+
|
58
|
+
# Add default wrapper for date inputs if the simple_form_bootstrap initializer
|
59
|
+
# has been generated
|
60
|
+
#
|
61
|
+
if config.wrappers.keys.include?('vertical_form')
|
62
|
+
config.wrapper_mappings = {
|
63
|
+
datetime: :vertical_form,
|
64
|
+
date: :vertical_form,
|
65
|
+
time: :vertical_form
|
66
|
+
}
|
67
|
+
end
|
62
68
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_form_extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Glyph-fr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|