Sha256: 54794b36697515254e601324f5085b6a359abaef679640b1258aee9d3fa6d5a1

Contents?: true

Size: 477 Bytes

Versions: 4

Compression:

Stored size: 477 Bytes

Contents

module FormtasticBootstrap
  module Actions
    module Base

      # Bootstrap doesn't have wrappers.
      def wrapper(&block)
        # TODO Detect if user passed wrapper_html_options and issue
        #      a warning that they're ignored. (See the original in
        #      Formtastic.)
        template.capture(&block)
      end

      def default_button_html
        { 
          :accesskey => accesskey,
          :class => "btn"
         }
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
formtastic-bootstrap-2.1.3 lib/formtastic-bootstrap/actions/base.rb
formtastic-bootstrap-2.1.2 lib/formtastic-bootstrap/actions/base.rb
formtastic-bootstrap-2.1.1 lib/formtastic-bootstrap/actions/base.rb
formtastic-bootstrap-2.0.0 lib/formtastic-bootstrap/actions/base.rb