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, :
|
52
|
+
template.haml_tag(:li, :class => button) do
|
53
53
|
template.haml_concat super(text, options)
|
54
54
|
end
|
55
55
|
end
|