Module: CCS::FrontendHelpers::GovUKFrontend::FileUpload

Included in:
CCS::FrontendHelpers::GovUKFrontend
Defined in:
lib/ccs/frontend_helpers/govuk_frontend/file_upload.rb

Overview

GOV.UK File Upload

This helper is used for generating the file upload component from the GDS - Components - File Upload

Instance Method Summary collapse

Instance Method Details

#govuk_file_upload(attribute, **options) ⇒ Object

Generates the HTML for the GOV.UK File Upload component



22
23
24
# File 'lib/ccs/frontend_helpers/govuk_frontend/file_upload.rb', line 22

def govuk_file_upload(attribute, **options)
  Components::GovUK::Field::Input::FileUpload.new(context: self, attribute: attribute, **options).render
end