govuk_design_system_formbuilder 0.7.4 → 0.7.5
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: fe50b7c27f62909f066385d6c9e1315ee2cea569c07fa7e9fd33b9cadb006ddb
|
|
4
|
+
data.tar.gz: f2a3eca142cbf8aea85d0895b80034ef49ab417c06d816d9fff650f0fa6445a3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 26bd141d0e1953ac44a9a16cb5f957b677edb29faa9aac60b9b17bbca541411b6e3f7a4b337990084f43c6dcf9a7c5594a02d8839851d2a278b6d136d12a68e3
|
|
7
|
+
data.tar.gz: f2df55515c72aa7978cd0886952013f36a10a3c671c0f8c1372517beec7ded401307191b7a1610dae9e57dab9b2cf3bd79c802eeb060c11b80abe750a10cec61
|
data/README.md
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* Most helpers take a block for arbitrary content
|
|
10
10
|
* Additional params for programmatically adding hints to check box and radio
|
|
11
11
|
button collections
|
|
12
|
+
* No external dependencies
|
|
12
13
|
|
|
13
14
|
## Installation
|
|
14
15
|
|
|
@@ -55,8 +56,7 @@ Now we can get started! 🎉
|
|
|
55
56
|
label: { text: 'Which department do you work for?' },
|
|
56
57
|
hint_text: "If you don't know ask your manager" }
|
|
57
58
|
|
|
58
|
-
|
|
59
|
-
= f.submit 'Away we go!'
|
|
59
|
+
= f.govuk_submit 'Away we go!'
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
## Developing and running the tests
|
|
@@ -318,6 +318,7 @@ module GOVUKDesignSystemFormBuilder
|
|
|
318
318
|
# @param text [String] The divider text
|
|
319
319
|
# @note This should only be used from within a {#govuk_radio_buttons_fieldset}
|
|
320
320
|
# @see https://design-system.service.gov.uk/components/radios/#radio-items-with-a-text-divider GOV.UK Radios with a text divider
|
|
321
|
+
# @return [ActiveSupport::SafeBuffer] HTML output
|
|
321
322
|
# @example A custom divider
|
|
322
323
|
# = govuk_radio_divider 'Alternatively'
|
|
323
324
|
def govuk_radio_divider(text = 'or')
|
|
@@ -21,7 +21,7 @@ module GOVUKDesignSystemFormBuilder
|
|
|
21
21
|
aria: { describedby: hint_id },
|
|
22
22
|
class: %w(govuk-radios__input)
|
|
23
23
|
),
|
|
24
|
-
Elements::Label.new(@builder, @object_name, @attribute_name, text: @text, value: @value).html,
|
|
24
|
+
Elements::Label.new(@builder, @object_name, @attribute_name, text: @text, value: @value, radio: true).html,
|
|
25
25
|
Elements::Hint.new(@builder, @object_name, @attribute_name, @hint_text, @value, radio: true).html,
|
|
26
26
|
].compact
|
|
27
27
|
)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: govuk_design_system_formbuilder
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Peter Yates
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-07-
|
|
11
|
+
date: 2019-07-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|