Sha256: bf152ed4c4c2fab0e489d8521821010e918b3c94a4513b84335ab0876a54a3a9

Contents?: true

Size: 1.18 KB

Versions: 8

Compression:

Stored size: 1.18 KB

Contents

module Effective
  module FormBuilderInputs
    def effective_date_time_picker(method, options = {})
      Inputs::EffectiveDateTimePicker::Input.new(@object, @object_name, @template, method, options, options).to_html
    end

    def effective_date_picker(method, options = {})
      Inputs::EffectiveDatePicker::Input.new(@object, @object_name, @template, method, options, options).to_html
    end

    def effective_price(method, options = {})
      Inputs::EffectivePrice::Input.new(@object, @object_name, @template, method, options, options).to_html
    end

    def effective_static_control(method, options = {})
      Inputs::EffectiveStaticControl::Input.new(@object, @object_name, @template, method, options, options).to_html
    end

    def effective_select(method, options_tag = nil, options = {}, html_options = {})
      options[:collection] = options_tag
      Inputs::EffectiveSelect::Input.new(@object, @object_name, @template, method, options, html_options).to_html
    end

    def effective_tel(method, options_tag = nil, options = {}, html_options = {})
      Inputs::EffectiveTel::Input.new(@object, @object_name, @template, method, options, html_options).to_html
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
effective_form_inputs-0.7.7 app/models/effective/form_builder_inputs.rb
effective_form_inputs-0.7.6 app/models/effective/form_builder_inputs.rb
effective_form_inputs-0.7.5 app/models/effective/form_builder_inputs.rb
effective_form_inputs-0.7.4 app/models/effective/form_builder_inputs.rb
effective_form_inputs-0.7.3 app/models/effective/form_builder_inputs.rb
effective_form_inputs-0.7.2 app/models/effective/form_builder_inputs.rb
effective_form_inputs-0.7.1 app/models/effective/form_builder_inputs.rb
effective_form_inputs-0.7.0 app/models/effective/form_builder_inputs.rb