Sha256: dbd03067320f4a24fa7e23953485da97dc21d6bb79744f6352c6cfd445f83e23

Contents?: true

Size: 1.02 KB

Versions: 5

Compression:

Stored size: 1.02 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_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

5 entries across 5 versions & 1 rubygems

Version Path
effective_form_inputs-0.6.4 app/models/effective/form_builder_inputs.rb
effective_form_inputs-0.6.3 app/models/effective/form_builder_inputs.rb
effective_form_inputs-0.6.2 app/models/effective/form_builder_inputs.rb
effective_form_inputs-0.6.1 app/models/effective/form_builder_inputs.rb
effective_form_inputs-0.6.0 app/models/effective/form_builder_inputs.rb