govuk_elements_form_builder 1.3.0 → 1.3.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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f4c3d8c9d3ea0f7f48c383d4173b8217fb7a92504164f603790e3668c2fcbeff
|
4
|
+
data.tar.gz: e83e857f865a2c36908b8514a31cea2bab5bda9fa98b43ebb4aae6178229f640
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bda579e14a31b4013ec90cfed41657b9b254b56c54448aab5f58e0450970ed209661466c06fbacaf0982492e2209eaadbbe79e83da2db6c7cd60b51673f8254a
|
7
|
+
data.tar.gz: 3602e41e5e7655d19e76d1086d0c265968053700a6867b741e76336bd089503fdbc980a0a5ddb4ab9a0290f291ef7b30bd881b43d55401d6d377789647362d2e
|
@@ -230,10 +230,12 @@ module GovukElementsFormBuilder
|
|
230
230
|
end
|
231
231
|
|
232
232
|
def fieldset_legend attribute, options
|
233
|
+
legend_text = options.fetch(:legend_options, {}).delete(:text)
|
234
|
+
|
233
235
|
legend = content_tag(:legend) do
|
234
236
|
tags = [content_tag(
|
235
237
|
:span,
|
236
|
-
fieldset_text(attribute),
|
238
|
+
legend_text || fieldset_text(attribute),
|
237
239
|
merge_attributes(options[:legend_options], default: {class: 'form-label-bold'})
|
238
240
|
)]
|
239
241
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_elements_form_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alistair Laing
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-11-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -29,16 +29,16 @@ dependencies:
|
|
29
29
|
name: govuk_frontend_toolkit
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - "
|
32
|
+
- - "<"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
34
|
+
version: 9.0.0
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - "
|
39
|
+
- - "<"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
41
|
+
version: 9.0.0
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: govuk_elements_rails
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -186,8 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
186
|
- !ruby/object:Gem::Version
|
187
187
|
version: '0'
|
188
188
|
requirements: []
|
189
|
-
|
190
|
-
rubygems_version: 2.5.1
|
189
|
+
rubygems_version: 3.0.6
|
191
190
|
signing_key:
|
192
191
|
specification_version: 4
|
193
192
|
summary: Ruby on Rails form builder that generates GOV.UK elements styled markup for
|