Sha256: 06bd7ec7f1aacba45c45ab7285b0c03b54b2575a268072bbad8653a2d15bf910
Contents?: true
Size: 1007 Bytes
Versions: 5
Compression:
Stored size: 1007 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 = @builder.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 @builder.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
5 entries across 5 versions & 1 rubygems