Module: Koi::Form::Elements::FileElement

Extended by:
ActiveSupport::Concern
Includes:
ActionDispatch::Routing::RouteSet::MountedHelpers, GOVUKDesignSystemFormBuilder::Traits::Error, GOVUKDesignSystemFormBuilder::Traits::HTMLAttributes, GOVUKDesignSystemFormBuilder::Traits::HTMLClasses, GOVUKDesignSystemFormBuilder::Traits::Hint, GOVUKDesignSystemFormBuilder::Traits::Label, GOVUKDesignSystemFormBuilder::Traits::Supplemental
Included in:
Document, Image
Defined in:
lib/koi/form/elements/file_element.rb

Instance Method Summary collapse

Instance Method Details

#htmlObject



21
22
23
24
25
26
27
28
29
# File 'lib/koi/form/elements/file_element.rb', line 21

def html
  GOVUKDesignSystemFormBuilder::Containers::FormGroup.new(
    *bound,
    **default_form_group_options(**@form_group),
  ).html do
    safe_join([label_element, preview, hint_element, error_element, file, destroy_element,
               supplemental_content])
  end
end