bs_form_builder 0.0.1 → 0.0.2

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
  SHA1:
3
- metadata.gz: 4a6271a8504387db5be8a92def627b903f139a42
4
- data.tar.gz: a09ebbad9c570964607874f4625c2a8755d0e4ea
3
+ metadata.gz: ea420cd6b0891640fc03488855f707ec98275136
4
+ data.tar.gz: db4e4cdf576f967aba76f251287556022a02c110
5
5
  SHA512:
6
- metadata.gz: 7dc7b8c5a73a898a2aa793e7272000cc531be5023b2ddb14eda5246546adf1db971fc2a4b15552c8d7c17cecd1b097609e394d3470d0138b4f65a049e79241ea
7
- data.tar.gz: afa560258a3b6e116e568b123d0b52576b2aeae805f975c4b3c32c3004310d73d4120864337980052188388b9e14f8b8dd5758885007c56a6fe79171b380caa4
6
+ metadata.gz: 6a7463200f865cc7303190af9284d681fe7313c27fff137a9d590ac5738925996ebeaa686d21377092a832053f29d4852490d8b910541eb3960b2c4f13df2989
7
+ data.tar.gz: 272f4e3f533f3f60dea356dedfdfabe09ae1ef82d9613deefaf33ae7529025bb9f7298943c2310ce7b141b13695e2a05bb80c15970730369487fa488d157de03
@@ -38,8 +38,9 @@ class BootstrapFormBuilder::HorizontalFormBuilder < ActionView::Helpers::FormBui
38
38
 
39
39
  def check_box(name, opts = {})
40
40
  form_group(name) do
41
- super(name, opts.reverse_merge(:class => 'form-control',
42
- :placeholder => help(name)))
41
+ @template.content_tag(:div,
42
+ @template.content_tag(:label, super(name, opts) + (help(name) || "&nbsp;").html_safe),
43
+ :class => 'checkbox')
43
44
  end
44
45
  end
45
46
 
@@ -1,3 +1,3 @@
1
1
  module BootstrapFormBuilder
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bs_form_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Geoghegan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-19 00:00:00.000000000 Z
11
+ date: 2014-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview