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.1.1.pre.alpha1 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.0.1 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.1.1 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.1.0.pre.alpha1 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.1.0 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.0.1.pre.alpha15 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-6.8.2.pre.alpha1 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.0.0.pre.alpha15 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.0.1.pre.alpha14 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.0.0.pre.alpha14 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.0.0.pre.alpha13 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.0.0.pre.alpha12 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.0.0 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.0.0.pre.alpha11 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-6.8.1 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-6.8.0 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-6.7.0.pre.alpha1 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-6.7.0 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-6.6.1 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
playbook_ui-7.0.0.pre.alpha10 app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb