Sha256: 6cbd41b166bd394c980ac7d0e83b296d982cc376284735d39789fd80d76ef83f

Contents?: true

Size: 998 Bytes

Versions: 21

Compression:

Stored size: 998 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbForm
    module FormBuilder
      extend ActiveSupport::Concern

      included do
        prepend(FormFieldBuilder.new(:email_field, kit_name: "text_input"))
        prepend(FormFieldBuilder.new(:number_field, kit_name: "text_input"))
        prepend(FormFieldBuilder.new(:search_field, kit_name: "text_input"))
        prepend(FormFieldBuilder.new(:telephone_field, kit_name: "text_input"))
        prepend(FormFieldBuilder.new(:text_field, kit_name: "text_input"))
        prepend(FormFieldBuilder.new(:password_field, kit_name: "text_input"))
        prepend(FormFieldBuilder.new(:url_field, kit_name: "text_input"))
        prepend(FormFieldBuilder.new(:text_area, kit_name: "textarea"))
        prepend(TypeaheadField)
        prepend(SelectField)
        prepend(CollectionSelectField)
        prepend(CheckboxField)

        def actions(&block)
          ActionArea.new(self).wrapper(&block)
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
playbook_ui-7.0.1.pre.alpha8 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-7.0.1.pre.alpha7 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-7.0.1.pre.alpha6 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-7.0.1.pre.alpha5 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-7.0.1.pre.alpha4 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-7.0.1.pre.alpha3 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-7.0.1.pre.alpha2 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-6.4.2 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-7.0.1.pre.alpha1 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-7.0.0.pre.alpha9 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-7.0.0.pre.alpha8 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-7.0.0.pre.alpha7 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-6.4.1 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-7.0.0.pre.alpha6 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-7.0.0.pre.alpha5 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-6.4.0 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-6.3.1 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-7.0.0.pre.alpha4 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-7.0.0.pre.alpha3 app/pb_kits/playbook/pb_form/form_builder.rb
playbook_ui-7.0.0.pre.alpha2 app/pb_kits/playbook/pb_form/form_builder.rb