Sha256: 34f556cd6d044d6cd2321755341c8ad4b371d6a06fa5b77917d0d694bd1d6b08

Contents?: true

Size: 309 Bytes

Versions: 3

Compression:

Stored size: 309 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.html_safe
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
liquid_cms-0.3.0.7 config/initializers/cms/simple_form_updates.rb
liquid_cms-0.3.0.6 config/initializers/cms/simple_form_updates.rb
liquid_cms-0.3.0.5 config/initializers/cms/simple_form_updates.rb