Sha256: 9c096a72898710eaff51c9fe60afb240a9f2b6f64128b4f6b693b2ff17ea1867

Contents?: true

Size: 412 Bytes

Versions: 2

Compression:

Stored size: 412 Bytes

Contents

module EffectiveResourcesHelper

  def simple_form_submit(form)
    content_tag(:p, class: 'text-right') do
      [
        form.button(:submit, 'Save', data: { disable_with: 'Saving...' }),
        form.button(:submit, 'Save and Continue', data: { disable_with: 'Saving...' }),
        form.button(:submit, 'Save and Add New', data: { disable_with: 'Saving...' })
      ].join(' ').html_safe
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
effective_resources-0.1.1 app/helpers/effective_resources_helper.rb
effective_resources-0.1.0 app/helpers/effective_resources_helper.rb