Sha256: 84134edc284c369c0f92f67c27f5dbb6e6898aca80353106e2f3c9aacbc1ec0f

Contents?: true

Size: 606 Bytes

Versions: 6

Compression:

Stored size: 606 Bytes

Contents

# frozen_string_literal: true

if defined?(SimpleForm)
  module Playbook
    module PbForm
      module FormBuilder
        class SimpleFormBuilder < SimpleForm::FormBuilder
          include FormBuilder

          def input(attribute_name, options = {}, &block)
            super(
              attribute_name,
              options.merge(label: false, input_html: {
                              props: {
                                label: true,
                              },
                            }),
              &block
            )
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
playbook_ui-3.4.0 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-3.3.0 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-3.2.0 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-3.1.0 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-3.0.1 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-3.0.0 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb