bulma_form_builder 0.2.0 → 0.2.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: ff366cb41c4a2fc423e5bfe9e7d11533aeb1200ca5104d637fcfc5d93f67b498
4
- data.tar.gz: 17ef764cc4ffd0567d12c74365d7f68c261a6674f52a2ffb3f16f4ed9bd5d931
3
+ metadata.gz: e51f26b98a29477b64bd28c5a422a0b1a988c80bd2e8e4b97366e4d35680248a
4
+ data.tar.gz: 45e6f7c0aa54c619ad54a72e226b3fa7d81e27d62f2926e498c82435163baa31
5
5
  SHA512:
6
- metadata.gz: 9ea0f56b3111553700dabf37c75f33fee933bd929cf1bf548451acc99cf0fa4a067834fed52f26d4a2537f39f3527c5a428f5681ae07c664a48a8b95cf528593
7
- data.tar.gz: '001414638e15e1368422f784f66e7be46defda223aa3524fb9614dfb348518a89b9c83f74505f14321e957fcf69cd9a5ff1bb7ad4ac9fb9f3857f4685c7da995'
6
+ metadata.gz: 5c551a24eea9f8354628905b3c5dab4430d774823b7245b5add50d590fbbf1db562fb1e7df4cdff903340f1ff81ecef41210a57ba64570371c6bcf950400c3ea
7
+ data.tar.gz: dd921cae6c47172576cba3a5631e6dc250e997e26989bfc4d81760620cc0c73dd103bf21f47c847837b75e860c4029a9dc4001bede44f797aa845bb6f9c90e1a
@@ -1,3 +1,7 @@
1
+ ## 0.2.1
2
+
3
+ - Support the check_box helpter option
4
+
1
5
  ## 0.2.0
2
6
 
3
7
  - Add collection_radio_buttons
@@ -9,14 +9,21 @@ module BulmaFormBuilder
9
9
  def check_box_with_bulma(name, options = {}, checked_value = '1', unchecked_value = '0', &block)
10
10
  options = options.symbolize_keys!
11
11
  check_box_options = options.except(:class, :label, :label_class, :error_message, :help, :inline, :custom, :hide_label, :skip_label, :wrapper_class)
12
+ wrapper_class = ['field', options[:wrapper_class]].compact
12
13
 
13
- content_tag(:div, class: 'field') do
14
- content_tag(:label, class: 'checkbox') do
14
+ content_tag(:div, class: wrapper_class) do
15
+ checkbox = content_tag(:label, class: 'checkbox') do
15
16
  html = check_box_without_bulma(name, check_box_options, checked_value, unchecked_value)
16
17
  html.concat(check_box_label(name)) unless options[:skip_label]
17
18
  html.concat(generate_error(name)) if options[:error_message]
18
19
  html
19
20
  end
21
+
22
+ if options[:help].present?
23
+ checkbox.concat(content_tag(:p, options[:help], class: 'help'))
24
+ end
25
+
26
+ checkbox
20
27
  end
21
28
  end
22
29
 
@@ -1,3 +1,3 @@
1
1
  module BulmaFormBuilder
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bulma_form_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - aki77
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-28 00:00:00.000000000 Z
11
+ date: 2020-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails