Sha256: c248959cc1a87de022a05af28a4cac2b5d7c6f428a4191d2b63002f78b00fee1
Contents?: true
Size: 1.05 KB
Versions: 3
Compression:
Stored size: 1.05 KB
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(FormFieldBuilder.new(:check_box, kit_name: "checkbox")) prepend(TypeaheadField) prepend(SelectField) prepend(CollectionSelectField) prepend(CheckboxField) def actions(&block) ActionArea.new(self).wrapper(&block) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems