Sha256: 766f9e2343105926738e1a6abda5215334e8e137d77da9ab9b241e0e179b15f2

Contents?: true

Size: 299 Bytes

Versions: 43

Compression:

Stored size: 299 Bytes

Contents

class SimpleForm::FormBuilder
  def commit_button_or_cancel
    @template.content_tag :div, :class => 'buttons' do
      String.new.tap do |html|
        html << button(:submit)
        html << " or "
        html << template.link_to('Cancel', :back, :class => 'cancel')
      end
    end
  end
end

Version data entries

43 entries across 29 versions & 1 rubygems

Version Path
liquid_cms-0.3.2.0 test/rails_app/config/initializers/cms/simple_form_updates.rb
liquid_cms-0.2.2.0 test/rails_app/config/initializers/cms/simple_form_updates.rb
liquid_cms-0.2.1.1 test/rails_app/config/initializers/cms/simple_form_updates.rb
liquid_cms-0.3.1.0 test/rails_app/config/initializers/cms/simple_form_updates.rb
liquid_cms-0.2.1.0 test/rails_app/config/initializers/cms/simple_form_updates.rb
liquid_cms-0.2.0.13 test/rails_app/config/initializers/cms/simple_form_updates.rb
liquid_cms-0.3.0.10 test/rails_app/config/initializers/cms/simple_form_updates.rb
liquid_cms-0.3.0.9 test/rails_app/config/initializers/cms/simple_form_updates.rb
liquid_cms-0.2.0.12 test/rails_app/config/initializers/cms/simple_form_updates.rb
liquid_cms-0.2.0.11 test/rails_app/config/initializers/cms/simple_form_updates.rb
liquid_cms-0.2.0.10 test/rails_app/config/initializers/cms/simple_form_updates.rb
liquid_cms-0.3.0.8 test/rails_app/config/initializers/cms/simple_form_updates.rb
liquid_cms-0.2.0.9 generators/liquid_cms/templates/config/initializers/cms/simple_form_updates.rb
liquid_cms-0.2.0.9 test/rails_app/config/initializers/cms/simple_form_updates.rb
liquid_cms-0.3.0.7 test/rails_app/config/initializers/cms/simple_form_updates.rb
liquid_cms-0.3.0.6 test/rails_app/config/initializers/cms/simple_form_updates.rb
liquid_cms-0.2.0.8 test/rails_app/config/initializers/cms/simple_form_updates.rb
liquid_cms-0.2.0.8 generators/liquid_cms/templates/config/initializers/cms/simple_form_updates.rb
liquid_cms-0.3.0.5 test/rails_app/config/initializers/cms/simple_form_updates.rb
liquid_cms-0.2.0.7 test/rails_app/config/initializers/cms/simple_form_updates.rb