effective_bootstrap 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b9a288ad87b19d24f4b6e1975e47c1d3df2cb808
|
|
4
|
+
data.tar.gz: b799987fbaecf619052a29fbf6af042e3df6c196
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 76fc29549c4bc7cb4f5a6ae2b3f98eb159d8433f7ca504faea8d702f7204de98e180eb60aa36883db0cf43a3c66d5d7aeb3057723111c1567bb5cf1960fb3a8d
|
|
7
|
+
data.tar.gz: 273ec9ef33c9e1cbade35f16fd150ba19fbe8897046f5af4e2312bb7b1910fcc87c72a9495a87b4c6b3ea1a853c68bf11b207155150167dcd507aa66ede1b38a
|
|
@@ -310,7 +310,7 @@ module Effective
|
|
|
310
310
|
end
|
|
311
311
|
end
|
|
312
312
|
|
|
313
|
-
if
|
|
313
|
+
if disabled? || form_disabled?
|
|
314
314
|
options[:input][:disabled] = 'disabled'
|
|
315
315
|
end
|
|
316
316
|
|
|
@@ -359,6 +359,10 @@ module Effective
|
|
|
359
359
|
@builder.readonly
|
|
360
360
|
end
|
|
361
361
|
|
|
362
|
+
def disabled?
|
|
363
|
+
options.dig(:input, :disabled).present?
|
|
364
|
+
end
|
|
365
|
+
|
|
362
366
|
def form_disabled?
|
|
363
367
|
@builder.disabled
|
|
364
368
|
end
|
|
@@ -50,7 +50,9 @@ module Effective
|
|
|
50
50
|
|
|
51
51
|
content_tag((inline? ? :label : :legend), options[:label]) do
|
|
52
52
|
text + content_tag(:div, class: 'effective-checks-actions text-muted') do
|
|
53
|
-
|
|
53
|
+
unless disabled?
|
|
54
|
+
link_to('Select All', '#', 'data-effective-checks-all': true) + ' - ' + link_to('Select None', '#', 'data-effective-checks-none': true)
|
|
55
|
+
end
|
|
54
56
|
end
|
|
55
57
|
end
|
|
56
58
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: effective_bootstrap
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Code and Effect
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-08-
|
|
11
|
+
date: 2018-08-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|