semantic_form_for 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,7 +31,7 @@ class SemanticFormFor::FormBuilder < ActionView::Helpers::FormBuilder
31
31
  text = args.shift
32
32
 
33
33
  template.capture_haml do
34
- template.haml_tag(:li, :id => _li_id(attribute)) do
34
+ template.haml_tag(:li, :id => _li_id(attribute), :class => input) do
35
35
  # check boxes should have their label and input tag in the reverse
36
36
  # order
37
37
  if input != :check_box
@@ -49,7 +49,7 @@ class SemanticFormFor::FormBuilder < ActionView::Helpers::FormBuilder
49
49
  BUTTONS.each do |button|
50
50
  define_method button do |text, options = {}|
51
51
  template.capture_haml do
52
- template.haml_tag(:li, :id => nil) do
52
+ template.haml_tag(:li, :class => button) do
53
53
  template.haml_concat super(text, options)
54
54
  end
55
55
  end
@@ -1,3 +1,3 @@
1
1
  module SemanticFormFor
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Stephen Touset