Sha256: d6e3f0feb036b9d7d9dedbe0b213f917645978a7d4eda92421f1f7870bf0e1f7

Contents?: true

Size: 1.33 KB

Versions: 5

Compression:

Stored size: 1.33 KB

Contents

require 'bulma_form_builder/form_field_builder'
require 'bulma_form_builder/form_field'
require 'bulma_form_builder/components'
require 'bulma_form_builder/helpers'
require 'bulma_form_builder/inputs'

module BulmaFormBuilder
  class FormBuilder < ActionView::Helpers::FormBuilder
    attr_reader :layout

    include BulmaFormBuilder::FormFieldBuilder
    include BulmaFormBuilder::FormField
    include BulmaFormBuilder::Components

    include BulmaFormBuilder::Helpers

    include BulmaFormBuilder::Inputs::Base
    include BulmaFormBuilder::Inputs::EmailField
    include BulmaFormBuilder::Inputs::UrlField
    include BulmaFormBuilder::Inputs::DateField
    include BulmaFormBuilder::Inputs::TimeField
    include BulmaFormBuilder::Inputs::MonthField
    include BulmaFormBuilder::Inputs::NumberField
    include BulmaFormBuilder::Inputs::PasswordField
    include BulmaFormBuilder::Inputs::Select
    include BulmaFormBuilder::Inputs::TextField
    include BulmaFormBuilder::Inputs::TextArea
    include BulmaFormBuilder::Inputs::CheckBox
    include BulmaFormBuilder::Inputs::CollectionCheckBoxes
    include BulmaFormBuilder::Inputs::CollectionRadioButtons

    delegate :content_tag, :capture, :concat, :tag, to: :@template

    def initialize(object_name, object, template, options)
      @layout = options[:layout]
      super
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bulma_form_builder-0.4.3 lib/bulma_form_builder/form_builder.rb
bulma_form_builder-0.4.2 lib/bulma_form_builder/form_builder.rb
bulma_form_builder-0.4.1 lib/bulma_form_builder/form_builder.rb
bulma_form_builder-0.4.0 lib/bulma_form_builder/form_builder.rb
bulma_form_builder-0.3.1 lib/bulma_form_builder/form_builder.rb