Sha256: c969cfee891c09ba27330957f127de000d20e528c13a4ea651e361b2928cf3ee
Contents?: true
Size: 989 Bytes
Versions: 3
Compression:
Stored size: 989 Bytes
Contents
module GOVUKDesignSystemFormBuilder module Containers class CheckBoxesFieldset < GOVUKDesignSystemFormBuilder::Base def initialize(builder, object_name, attribute_name, hint_text:, legend:, small:, &block) super(builder, object_name, attribute_name, &block) @legend = legend @hint_text = hint_text @small = small @block_content = capture { block.call } end def html Containers::FormGroup.new(@builder, @object_name, @attribute_name).html do Containers::Fieldset.new(@builder, legend: @legend, described_by: [error_element.error_id, hint_element.hint_id]).html do safe_join( [ hint_element.html, error_element.html, Containers::CheckBoxes.new(@builder, small: @small).html do @block_content end ] ) end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems