Sha256: dbb434db45d7c4678cfc7783f613dd91d8140c3338adbb7ef642407181e4f283
Contents?: true
Size: 603 Bytes
Versions: 15
Compression:
Stored size: 603 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? warn("Supplemental content is deprecated and support will soon be removed. See https://github.com/x-govuk/govuk-form-builder/issues/445") tag.div(id: supplemental_id) { @content } end private def supplemental_id build_id('supplemental') end end end end
Version data entries
15 entries across 15 versions & 2 rubygems