Class: AndyAdmin::FormBuilder
- Inherits:
-
ActionView::Helpers::FormBuilder
- Object
- ActionView::Helpers::FormBuilder
- AndyAdmin::FormBuilder
- Defined in:
- lib/generators/andy_admin/templates/form_builder.rb
Instance Method Summary collapse
Instance Method Details
#actions ⇒ Object
32 33 34 |
# File 'lib/generators/andy_admin/templates/form_builder.rb', line 32 def actions @template.concat @template.content_tag(:div, yield.html_safe, :class => "actions") end |
#cancel(label, link) ⇒ Object
42 43 44 |
# File 'lib/generators/andy_admin/templates/form_builder.rb', line 42 def cancel(label, link) @template.content_tag(:a, label.html_safe, :href => link) end |
#submit(label, *args) ⇒ Object
36 37 38 39 40 |
# File 'lib/generators/andy_admin/templates/form_builder.rb', line 36 def submit(label, *args) = args. [:colour] ||= "green" @template.content_tag(:button, label.html_safe, :class => "awesome #{[:colour]}", :type => "submit") end |