Sha256: fa8d406cb349eeb5225eed3e330a73c8c355d72457f87b92724ebe52d3206ea8

Contents?: true

Size: 655 Bytes

Versions: 23

Compression:

Stored size: 655 Bytes

Contents

module FlexaFormtasticBootstrap
  module Inputs
    module Base
      module Hints
        
        include Formtastic::Inputs::Base::Hints

        def hint_html(inline_or_block = :inline)
          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

23 entries across 23 versions & 1 rubygems

Version Path
flexa_lib-0.5.2 lib/flexa_formtastic_bootstrap/inputs/base/hints.rb
flexa_lib-0.5.1 lib/flexa_formtastic_bootstrap/inputs/base/hints.rb
flexa_lib-0.5.0 lib/flexa_formtastic_bootstrap/inputs/base/hints.rb
flexa_lib-0.3.9 lib/flexa_formtastic_bootstrap/inputs/base/hints.rb
flexa_lib-0.3.8 lib/flexa_formtastic_bootstrap/inputs/base/hints.rb
flexa_lib-0.3.7 lib/flexa_formtastic_bootstrap/inputs/base/hints.rb
flexa_lib-0.3.6 lib/flexa_formtastic_bootstrap/inputs/base/hints.rb
flexa_lib-0.3.5 lib/flexa_formtastic_bootstrap/inputs/base/hints.rb
flexa_lib-0.3.4 lib/flexa_formtastic_bootstrap/inputs/base/hints.rb
flexa_lib-0.3.3 lib/flexa_formtastic_bootstrap/inputs/base/hints.rb
flexa_lib-0.3.2 lib/flexa_formtastic_bootstrap/inputs/base/hints.rb
flexa_lib-0.3.1 lib/flexa_formtastic_bootstrap/inputs/base/hints.rb
flexa_lib-0.3.0 lib/flexa_formtastic_bootstrap/inputs/base/hints.rb
flexa_lib-0.2.9 lib/flexa_formtastic_bootstrap/inputs/base/hints.rb
flexa_lib-0.2.8 lib/flexa_formtastic_bootstrap/inputs/base/hints.rb
flexa_lib-0.2.7 lib/flexa_formtastic_bootstrap/inputs/base/hints.rb
flexa_lib-0.2.6 lib/flexa_formtastic_bootstrap/inputs/base/hints.rb
flexa_lib-0.2.5 lib/flexa_formtastic_bootstrap/inputs/base/hints.rb
flexa_lib-0.2.4 lib/flexa_formtastic_bootstrap/inputs/base/hints.rb
flexa_lib-0.2.3 lib/flexa_formtastic_bootstrap/inputs/base/hints.rb