conjoin 0.0.42 → 0.0.43
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/conjoin/inputs/date.rb +19 -1
- data/lib/conjoin/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9092ecaac5ebcd75dd307a052740115c9f6071b5
|
4
|
+
data.tar.gz: 758e1c54cb17dbe31f90004982048b38de3b6853
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 08a40c6b3288a964a6c15f15bf5bae504fb577f9a7fa96fc00d406e156abd700b4c3654e5a1d578f8846fc516d79c3849090b650bda99c8f6199036e882f4641
|
7
|
+
data.tar.gz: 53056de6bd092194d0c49f8b2e9327c95fdfd1bcc4da46552364c2bc0b128ad69d1b0485b8e5887b4b79d8eb9ebda982b5a1ead72e24635feec5231b2d709085
|
data/lib/conjoin/inputs/date.rb
CHANGED
@@ -4,7 +4,25 @@ module Conjoin
|
|
4
4
|
def display
|
5
5
|
options[:date] = true
|
6
6
|
options[:value] = R18n.l options[:value]
|
7
|
-
|
7
|
+
|
8
|
+
append_button = options.delete :append_button
|
9
|
+
|
10
|
+
content = super
|
11
|
+
|
12
|
+
if append_button
|
13
|
+
content = mab do
|
14
|
+
div class: 'input-group' do
|
15
|
+
text! content
|
16
|
+
div class: 'input-group-btn' do
|
17
|
+
button class: 'btn btn-primary', type: append_button[:type] || 'button', 'on-click-get' => append_button[:href] do
|
18
|
+
text append_button[:text]
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
content
|
8
26
|
end
|
9
27
|
end
|
10
28
|
end
|
data/lib/conjoin/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: conjoin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.43
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cj
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cuba
|