Sha256: 99a72fb08df2ca13c0606a45a5af67bffa26d8798a8f9552b887c3eec4f28cad
Contents?: true
Size: 1.03 KB
Versions: 8
Compression:
Stored size: 1.03 KB
Contents
module GOVUKDesignSystemFormBuilder module Containers class RadioButtonsFieldset < GOVUKDesignSystemFormBuilder::Base def initialize(builder, object_name, attribute_name, hint_text:, legend:, inline:, small:, &block) super(builder, object_name, attribute_name) @inline = inline @small = small @legend = legend @hint_text = hint_text @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::Radios.new(@builder, inline: @inline, small: @small).html do @block_content end ] ) end end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems