module Para::FormBuilder::Containers
Public Instance Methods
Source
# File lib/para/form_builder/containers.rb, line 16 def actions(options = {}, &block) template.content_tag(:div, class: 'form-actions') do next template.capture(&block) if block if options.empty? options[:only] = template.instance_variable_get(:@component).default_form_actions end actions_buttons_for(options).join("\n").html_safe end end
Source
# File lib/para/form_builder/containers.rb, line 98 def component_path return unless (component = template.instance_variable_get(:@component)) component.path end
Source
# File lib/para/form_builder/containers.rb, line 4 def fieldset(options = {}, &block) template.content_tag(:div, class: 'form-inputs') do buffer = if (title = options[:title]) template.content_tag(:legend, title) else ''.html_safe end buffer + template.capture(&block) end end
Source
# File lib/para/form_builder/containers.rb, line 94 def return_to_path template.params[:return_to].presence || component_path end