Sha256: 05e5fe9e2e56b1d64ae9e4101a64df621ade7ee2ad54bdd9fc2e5956a0e971f8

Contents?: true

Size: 649 Bytes

Versions: 4

Compression:

Stored size: 649 Bytes

Contents

module FormtasticBootstrap
  module Inputs
    module Base
      module Hints
        
        include Formtastic::Inputs::Base::Hints

        def hint_html(inline_or_block = :block)
          if hint?
            hint_class = if inline_or_block == :inline
              options[:hint_class] || builder.default_inline_hint_class
            else
              options[:hint_class] || builder.default_block_hint_class
            end
            template.content_tag(
              :span, 
              Formtastic::Util.html_safe(hint_text), 
              :class => hint_class
            )
          end
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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