Sha256: d63cf9aa389601c7b5b4afe7f8733988dac054ebba8dc4cda1fe9844a8df559b

Contents?: true

Size: 611 Bytes

Versions: 198

Compression:

Stored size: 611 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.deep_merge(label: false, input_html: {
                              props: {
                                label: true,
                              },
                            }),
              &block
            )
          end
        end
      end
    end
  end
end

Version data entries

198 entries across 198 versions & 1 rubygems

Version Path
playbook_ui-7.16.0.pre.alpha5 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.16.0.pre.alpha4 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.16.0.pre.alpha3 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.16.0.pre.alpha2 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.16.0.pre.alpha1 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.14.0.pre.alpha1 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.16.0 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.15.1 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.15.0 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.14.0 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.13.0.pre.alpha1 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.13.0 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.12.1 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.12.0 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.11.1 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.11.0 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.11.0.pre.alpha1 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.10.0 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.9.0 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.8.4 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb