Module: CCS::FrontendHelpers::CCSFrontend::ContactUs

Included in:
CCS::FrontendHelpers::CCSFrontend
Defined in:
lib/ccs/frontend_helpers/ccs_frontend/contact_us.rb

Overview

CCS Contact Us

This helper is used for generating the contact us component from the CCS - Components - Contact Us

Instance Method Summary collapse

Instance Method Details

#ccs_contact_us(contact_us_link_href) ⇒ ActiveSupport::SafeBuffer

Generates the HTML for the CCS Contact Us component

Parameters:

  • contact_us_link_href (String)

    Contact us link href

  • contact_us_link_text (String)

    Contact us link text, defaults to “Contact us (opens in a new tab)”

  • having_problems_text (String)

    Having problem text, defaults to “Having problems with this service?”

  • contact_us_text (String)

    Contact use text, defaults to “for support.”

  • options (Hash)

    a customizable set of options

Returns:

  • (ActiveSupport::SafeBuffer)


22
23
24
# File 'lib/ccs/frontend_helpers/ccs_frontend/contact_us.rb', line 22

def ccs_contact_us(contact_us_link_href, **)
  Components::CCS::ContactUs.new(contact_us_link_href: contact_us_link_href, context: self, **).render
end