simple_form_datetimepicker 0.0.2 → 0.0.4
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: 7006666abb188857dd5e1a4aacd5a6bb5864256a
|
4
|
+
data.tar.gz: 19a770a04de05e24f86311e87b0d34b9b296d089
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd099ddc72994408107489f8fa4fb3fd66d69781974fb0c9e49cb8f6fcfe4f987f0bf0ff2d2ed98b14b09c1a9f143142a10286addac4dd06d4cc0b58fe4a8a7a
|
7
|
+
data.tar.gz: bbf5fd17759675266ac2838f41a74f2c824c08edb1f81fa0bb410826b7f4d34f6b670cac396d8a514963e27fb43db586225e73bc0b16454eeb528fc47ce3cd1d
|
data/lib/generators/simple_form_datetimepicker/install/templates/simple_form_datetimepicker.rb
CHANGED
@@ -12,17 +12,24 @@ module SimpleForm
|
|
12
12
|
defaultvalue = defaulttime
|
13
13
|
end
|
14
14
|
input_html_options[:class] << 'dtp'
|
15
|
-
if input_html_options.key?(:data)
|
15
|
+
no_group = if input_html_options.key?(:data)
|
16
16
|
input_html_options[:data][:defaultvalue] = defaultvalue if defaultvalue.present?
|
17
|
+
input_html_options[:data].key?(:no_group)
|
17
18
|
else
|
18
19
|
input_html_options[:data] = {:defaultvalue => defaultvalue} if defaultvalue.present?
|
20
|
+
false
|
19
21
|
end
|
20
|
-
|
22
|
+
|
23
|
+
out = ''
|
24
|
+
out << '<div class="input-group">' unless no_group
|
21
25
|
out << @builder.text_field(attribute_name, input_html_options)
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
+
unless no_group
|
27
|
+
out << '<span class="input-group-addon">'
|
28
|
+
out << "<span class='#{icon_lib} #{icon}'></span>"
|
29
|
+
out << '</span>'
|
30
|
+
out << '</div>'
|
31
|
+
end
|
32
|
+
out.html_safe
|
26
33
|
end
|
27
34
|
end
|
28
35
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_form_datetimepicker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- smit1625
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|