Module: GOVUKDesignSystemFormBuilder::Traits::DateInput

Included in:
Elements::Date, Elements::Time
Defined in:
lib/govuk_design_system_formbuilder/traits/date_input.rb

Constant Summary collapse

MULTIPARAMETER_KEY =
{ year: 1, month: 2, day: 3, hour: 4, minute: 5, second: 6 }.freeze
SEGMENT_METHOD =
{ year: :year, month: :month, day: :day, hour: :hour, minute: :min, second: :sec }.freeze

Instance Method Summary collapse

Instance Method Details

#htmlObject



9
10
11
12
13
14
15
# File 'lib/govuk_design_system_formbuilder/traits/date_input.rb', line 9

def html
  Containers::FormGroup.new(*bound, **@form_group, **@html_attributes).html do
    Containers::Fieldset.new(*bound, **fieldset_options).html do
      safe_join([supplemental_content, hint_element, error_element, date_input])
    end
  end
end