effective_bootstrap 0.10.1 → 0.10.2
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f5cfe9f7e97af6527f4e665cfdfafa593d59877fa3cb3eff799a1dbb03febc8e
|
|
4
|
+
data.tar.gz: eb7008db747ff85e2350998f8cce1bdbe94ded6304c889bd3397b0fd6a37f76d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e0628b3719d92228b9b73e87c995567e234ef3af27c72b309daf71aba90e811605525432066d58b177c7f312de023f2d2ab328939c2d15536abeb551500633b4
|
|
7
|
+
data.tar.gz: 751bea8609a0bb253485013a867103b6e7d3bc63f3f63bebe47e529d3b0bcfb1364a6b4ced22180942396c0c4a523bd2a24498fc41f51ebd06d100de9111a072
|
|
@@ -63,3 +63,7 @@ div.form-group > label + .btn-group { display: block; }
|
|
|
63
63
|
|
|
64
64
|
.effective-checks.is-invalid .invalid-feedback { display: block; }
|
|
65
65
|
.effective-checks.is-valid .valid-feedback { display: block; }
|
|
66
|
+
|
|
67
|
+
.invalid-feedback { text-transform: capitalize; }
|
|
68
|
+
.valid-feedback { display: none; }
|
|
69
|
+
|
|
@@ -180,13 +180,10 @@ module Effective
|
|
|
180
180
|
|
|
181
181
|
invalid = object.errors[name].to_sentence.presence if object.respond_to?(:errors)
|
|
182
182
|
invalid ||= options[:feedback][:invalid].delete(:text).presence
|
|
183
|
-
invalid ||= [("
|
|
184
|
-
invalid ||= "
|
|
183
|
+
invalid ||= [("Can't be blank" if options[:input][:required]), ('must be valid' if validated?(name))].tap(&:compact!).join(' and ').presence
|
|
184
|
+
invalid ||= "Can't be blank or is invalid"
|
|
185
185
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
content_tag(:div, invalid.html_safe, options[:feedback][:invalid]) +
|
|
189
|
-
content_tag(:div, valid.html_safe, options[:feedback][:valid])
|
|
186
|
+
content_tag(:div, invalid.html_safe, options[:feedback][:invalid])
|
|
190
187
|
end
|
|
191
188
|
|
|
192
189
|
def has_error?(name = nil)
|
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.10.
|
|
4
|
+
version: 0.10.2
|
|
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: 2022-01-
|
|
11
|
+
date: 2022-01-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|