form-bootstrap 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,9 +26,13 @@ module FormBootstrap
26
26
  options = args.extract_options!.symbolize_keys!
27
27
  content_tag :div, class: "clearfix#{(' error' if object.errors[name].any?)}" do
28
28
  content_tag(:div, class: 'input') do
29
- args << options.except(:label, :help)
30
- html = super(name, *args) + ' ' + content_tag(:span) { options[:label] }
31
- label(name, html)
29
+ content_tag(:ul, class: 'inputs-list') do
30
+ content_tag(:li) do
31
+ args << options.except(:label, :help)
32
+ html = super(name, *args) + ' ' + content_tag(:span) { options[:label] }
33
+ label(name, html)
34
+ end
35
+ end
32
36
  end
33
37
  end
34
38
  end
@@ -1,3 +1,3 @@
1
1
  module FormBootstrap
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -56,7 +56,7 @@ class FormBootstrapTest < ActionView::TestCase
56
56
  end
57
57
 
58
58
  test "check_boxes are wrapped correctly" do
59
- expected = %{<div class="clearfix"><div class="input"><label for="user_misc"><input name="user[misc]" type="hidden" value="0" /><input id="user_misc" name="user[misc]" type="checkbox" value="1" /> <span>This is a checkbox</span></label></div></div>}
59
+ expected = %{<div class="clearfix"><div class="input"><ul class="inputs-list"><li><label for="user_misc"><input name="user[misc]" type="hidden" value="0" /><input id="user_misc" name="user[misc]" type="checkbox" value="1" /> <span>This is a checkbox</span></label></li></ul></div></div>}
60
60
  assert_equal expected, @builder.check_box(:misc, label: 'This is a checkbox')
61
61
  end
62
62
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: form-bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-01-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70310314400360 !ruby/object:Gem::Requirement
16
+ requirement: &70130408659660 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.1.3
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70310314400360
24
+ version_requirements: *70130408659660
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: sqlite3
27
- requirement: &70310314399940 !ruby/object:Gem::Requirement
27
+ requirement: &70130408658880 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70310314399940
35
+ version_requirements: *70130408658880
36
36
  description: Provides a builder that makes it super easy to take advantage of Twitter
37
37
  Bootstrap forms styles.
38
38
  email: