polaris_view_components 0.13.3 → 0.13.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/polaris/form_builder.rb +9 -6
- data/lib/polaris/view_components/version.rb +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a730ab674aafb0d5e8b04d918ef88c417561b7d767083a5a66e5e92bb8cd9c65
|
4
|
+
data.tar.gz: e68647fbfa2cca7f989c15f729bc9e415b9ff56ae6bf15e54372f181e79b503e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b82fa6bfb1b8e44de4560c2285cb747ecd3216645e289b6776fd9b60ba7e6b1710d93f1e0c2f1fa3e7c66a24298c18b182b8e8655d8f6409fa03a117ae061dff
|
7
|
+
data.tar.gz: 55290b4196b73cf0c09e5382c245409870a12d726c8d7bb37cf517211fb42f68cab0d146da094c6354181a28236af23b1b44ca889e31e6faf7cf623afbd2a1c2
|
@@ -16,12 +16,15 @@ module Polaris
|
|
16
16
|
model: object.class.model_name.human.downcase
|
17
17
|
)
|
18
18
|
|
19
|
-
render Polaris::BannerComponent.new(title: title, status: :critical, within: :container) do
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
19
|
+
render Polaris::BannerComponent.new(title: title, status: :critical, within: :container) do |banner|
|
20
|
+
[
|
21
|
+
render(Polaris::ListComponent.new) do |list|
|
22
|
+
object.errors.full_messages.each do |error|
|
23
|
+
list.item { error.html_safe }
|
24
|
+
end
|
25
|
+
end,
|
26
|
+
(template.capture { yield(banner) } if block_given?)
|
27
|
+
].compact.join.html_safe
|
25
28
|
end
|
26
29
|
end
|
27
30
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polaris_view_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Gamble
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-04-
|
12
|
+
date: 2023-04-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -32,6 +32,9 @@ dependencies:
|
|
32
32
|
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: 2.0.0
|
35
|
+
- - "<"
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 3.0.0
|
35
38
|
type: :runtime
|
36
39
|
prerelease: false
|
37
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -39,6 +42,9 @@ dependencies:
|
|
39
42
|
- - ">="
|
40
43
|
- !ruby/object:Gem::Version
|
41
44
|
version: 2.0.0
|
45
|
+
- - "<"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 3.0.0
|
42
48
|
- !ruby/object:Gem::Dependency
|
43
49
|
name: capybara
|
44
50
|
requirement: !ruby/object:Gem::Requirement
|