Sha256: f83ae441bfc1892a60d829e68668960e5ebe52004e250cc802c11c13e0ca4192

Contents?: true

Size: 456 Bytes

Versions: 36

Compression:

Stored size: 456 Bytes

Contents

module GOVUKDesignSystemFormBuilder
  module Containers
    class Supplemental < Base
      def initialize(builder, object_name, attribute_name, content)
        super(builder, object_name, attribute_name)

        @content = content
      end

      def html
        return if @content.blank?

        tag.div(id: supplemental_id) { @content }
      end

    private

      def supplemental_id
        build_id('supplemental')
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
govuk_design_system_formbuilder-5.0.0 lib/govuk_design_system_formbuilder/containers/supplemental.rb
govuk_design_system_formbuilder-5.0.0b1 lib/govuk_design_system_formbuilder/containers/supplemental.rb
govuk_design_system_formbuilder-4.1.1 lib/govuk_design_system_formbuilder/containers/supplemental.rb
govuk_design_system_formbuilder-4.1.0 lib/govuk_design_system_formbuilder/containers/supplemental.rb
govuk_design_system_formbuilder-4.0.0 lib/govuk_design_system_formbuilder/containers/supplemental.rb
govuk_design_system_formbuilder-4.0.0rc1 lib/govuk_design_system_formbuilder/containers/supplemental.rb
govuk_design_system_formbuilder-4.0.0a1 lib/govuk_design_system_formbuilder/containers/supplemental.rb
govuk_design_system_formbuilder-3.3.0 lib/govuk_design_system_formbuilder/containers/supplemental.rb
govuk_design_system_formbuilder-3.2.0 lib/govuk_design_system_formbuilder/containers/supplemental.rb
govuk_design_system_formbuilder-3.1.2 lib/govuk_design_system_formbuilder/containers/supplemental.rb
govuk_design_system_formbuilder-3.1.1 lib/govuk_design_system_formbuilder/containers/supplemental.rb
govuk_design_system_formbuilder-3.1.0 lib/govuk_design_system_formbuilder/containers/supplemental.rb
govuk_design_system_formbuilder-3.0.3 lib/govuk_design_system_formbuilder/containers/supplemental.rb
govuk_design_system_formbuilder-3.0.3b1 lib/govuk_design_system_formbuilder/containers/supplemental.rb
govuk_design_system_formbuilder-3.0.2 lib/govuk_design_system_formbuilder/containers/supplemental.rb
govuk_design_system_formbuilder-3.0.1 lib/govuk_design_system_formbuilder/containers/supplemental.rb
govuk_design_system_formbuilder-3.0.0 lib/govuk_design_system_formbuilder/containers/supplemental.rb
govuk_design_system_formbuilder-3.0.0b2 lib/govuk_design_system_formbuilder/containers/supplemental.rb
govuk_design_system_formbuilder-3.0.0b1 lib/govuk_design_system_formbuilder/containers/supplemental.rb
govuk_design_system_formbuilder-2.8.0 lib/govuk_design_system_formbuilder/containers/supplemental.rb