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-6.6.0 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-6.5.2 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.0.1.pre.alpha12 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.0.1.pre.alpha11 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.0.1.pre.alpha10 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.0.1.pre.alpha9 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-6.5.1 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-6.5.0 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.0.1.pre.alpha8 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.0.1.pre.alpha7 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.0.1.pre.alpha6 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.0.1.pre.alpha5 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.0.1.pre.alpha4 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.0.1.pre.alpha3 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.0.1.pre.alpha2 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-6.4.2 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.0.1.pre.alpha1 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.0.0.pre.alpha9 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.0.0.pre.alpha8 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.0.0.pre.alpha7 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb