Sha256: ca50b60469bbb37ff5019f633897014f9b544c5333294bebbaf376f61bed6c31
Contents?: true
Size: 1000 Bytes
Versions: 10
Compression:
Stored size: 1000 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(DatePickerField) def actions(&block) ActionArea.new(self).wrapper(&block) end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems