Sha256: ca918f8f4d99f34bb1408fdeb1957c7ed15b5d12b9984fee9066b57b7df09e15

Contents?: true

Size: 682 Bytes

Versions: 14

Compression:

Stored size: 682 Bytes

Contents

class BsLabelWithContainerInput < Formtastic::Inputs::StringInput
  include FormtasticBootstrap::Inputs::Base
  include FormtasticBootstrap::Inputs::Base::Collections
  include ActionView::Helpers::TagHelper
  include ActionView::Context


  ##
  # Passare nelle opzioni la chiave :content con una proc che richiamo per generare il buffer
  #
  def to_html

    bootstrap_wrapping do
      content_tag(:div, class: 'input-group bs_label_with_content') do
        buff = ActiveSupport::SafeBuffer.new
        buff<< content_tag(:p, options[:content].call, class: 'form-control-static',id:"#{form_control_input_html_options[:id]}_container")
        buff
      end
    end
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
kono_utils-1.0.1 app/input/bs_label_with_container_input.rb
kono_utils-1.0.0 app/input/bs_label_with_container_input.rb
kono_utils-0.15.16 app/input/bs_label_with_container_input.rb
kono_utils-0.15.15 app/input/bs_label_with_container_input.rb
kono_utils-0.15.14 app/input/bs_label_with_container_input.rb
kono_utils-0.15.13 app/input/bs_label_with_container_input.rb
kono_utils-0.15.12 app/input/bs_label_with_container_input.rb
kono_utils-0.15.11 app/input/bs_label_with_container_input.rb
kono_utils-0.15.10 app/input/bs_label_with_container_input.rb
kono_utils-0.15.9 app/input/bs_label_with_container_input.rb
kono_utils-0.15.8 app/input/bs_label_with_container_input.rb
kono_utils-0.15.7 app/input/bs_label_with_container_input.rb
kono_utils-0.15.6 app/input/bs_label_with_container_input.rb
kono_utils-0.15.5 app/input/bs_label_with_container_input.rb