govuk_publishing_components 12.9.0 → 12.9.1

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
  SHA256:
3
- metadata.gz: df4a59e5bde0deae7a90d8ab6b60b4bc333082241f512a7d391231015f9160aa
4
- data.tar.gz: 9f8d256520354bcf7aa21cf60e41f430a9ac3bb4b16ae65be7191de75020e544
3
+ metadata.gz: d4fe8b79d00d6b9e3266f122e6fc88a6f01ea7503f3ca421b9ca66140f0af06a
4
+ data.tar.gz: 10e44a5bbf1843aa04c4d6a48c52a143332b6ae9056b372f3f9698e3e3ad06f9
5
5
  SHA512:
6
- metadata.gz: b9484354d62a2985246628f93d405b48f7c21934e9c32570faa84617b44ce132aa516bc0dc8b566da00290606cbb18b3dd4d2cba49dcaa1a0f9e9f511bccf3df
7
- data.tar.gz: 6612e414febf1e6aadb2c8220b616b616aef4a0ab885b6cc1633f1cd6b801aa0658121620a29b34a3dd6aba26629fd8b6169a5101153174a33e71535b3dbc80f
6
+ metadata.gz: 01c43e0f7a1abb2a552433dde6952c016d3fe1f1ef6d9051a417a94267378ee0c5ac2ec2d052b9d31aa77c4564cdb13cb4221a295041cc4b2ea7df0570302144
7
+ data.tar.gz: a30dafd6bcc3a6903fe07d3371d140ea88f25fe55e7addb681bab7785c2d56f33b6430c98209c733a77913b776bc7e8b578f6eda0abc9c34954606cdd00858a8
@@ -44,9 +44,9 @@
44
44
  text: error_message
45
45
  } %>
46
46
  <% elsif error_items %>
47
- <%= render "govuk_publishing_components/components/error_summary", {
47
+ <%= render "govuk_publishing_components/components/error_message", {
48
48
  id: error_id,
49
- items: error_items
49
+ text: raw(error_items.map { |item| item[:text] }.join("<br/>"))
50
50
  } %>
51
51
  <% end %>
52
52
 
@@ -51,9 +51,9 @@
51
51
  text: error_message
52
52
  } %>
53
53
  <% elsif error_items %>
54
- <%= render "govuk_publishing_components/components/error_summary", {
54
+ <%= render "govuk_publishing_components/components/error_message", {
55
55
  id: error_id,
56
- items: error_items
56
+ text: raw(error_items.map { |item| item[:text] }.join("<br/>"))
57
57
  } %>
58
58
  <% end %>
59
59
 
@@ -31,9 +31,9 @@
31
31
  text: error_message
32
32
  } %>
33
33
  <% elsif error_items %>
34
- <%= render "govuk_publishing_components/components/error_summary", {
34
+ <%= render "govuk_publishing_components/components/error_message", {
35
35
  id: error_id,
36
- items: error_items
36
+ text: raw(error_items.map { |item| item[:text] }.join("<br/>"))
37
37
  } %>
38
38
  <% end %>
39
39
 
@@ -47,9 +47,9 @@
47
47
  text: error_message
48
48
  } %>
49
49
  <% elsif error_items %>
50
- <%= render "govuk_publishing_components/components/error_summary", {
50
+ <%= render "govuk_publishing_components/components/error_message", {
51
51
  id: error_id,
52
- items: error_items
52
+ text: raw(error_items.map { |item| item[:text] }.join("<br/>"))
53
53
  } %>
54
54
  <% end %>
55
55
 
@@ -40,6 +40,8 @@ examples:
40
40
  error_items:
41
41
  - text: Descriptive link to the question with an error 1
42
42
  href: '#example-error-1'
43
+ - text: Descriptive link to the question with an error 2
44
+ href: '#example-error-2'
43
45
  with_file_accept:
44
46
  data:
45
47
  label:
@@ -60,6 +60,8 @@ examples:
60
60
  error_items:
61
61
  - text: Descriptive link to the question with an error 1
62
62
  href: '#example-error-1'
63
+ - text: Descriptive link to the question with an error 2
64
+ href: '#example-error-2'
63
65
  with_value:
64
66
  data:
65
67
  label:
@@ -147,6 +147,8 @@ examples:
147
147
  error_items:
148
148
  - text: Descriptive link to the question with an error 1
149
149
  href: '#example-error-1'
150
+ - text: Descriptive link to the question with an error 2
151
+ href: '#example-error-2'
150
152
  items:
151
153
  - value: "government-gateway"
152
154
  text: "Use Government Gateway"
@@ -47,6 +47,8 @@ examples:
47
47
  error_items:
48
48
  - text: Descriptive link to the question with an error 1
49
49
  href: '#example-error-1'
50
+ - text: Descriptive link to the question with an error 2
51
+ href: '#example-error-2'
50
52
  with_value:
51
53
  data:
52
54
  label:
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = '12.9.0'.freeze
2
+ VERSION = '12.9.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.9.0
4
+ version: 12.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-19 00:00:00.000000000 Z
11
+ date: 2018-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config