Sha256: fa1287efda3200ec5e24c3b156ca24283373e3dd2fca0204b610846a65aa36b0

Contents?: true

Size: 642 Bytes

Versions: 23

Compression:

Stored size: 642 Bytes

Contents

# frozen_string_literal: true

module Hyrax
  ##
  # Helpers for displaying Hyrax's default contact form.
  module ContactFormHelper
    ##
    # @api public
    #
    # Provides the "issue type" options for the contact form dropdown. The
    # response should be compatible with ActionView's `options_for_select`
    # helper.
    #
    # @note this helper should always provide i18nized values.
    #
    # @return [Array<String>]
    #
    # @see https://apidock.com/rails/ActionView/Helpers/FormOptionsHelper/options_for_select
    def contact_form_issue_type_options
      Hyrax::ContactForm.issue_types_for_locale.dup
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
hyrax-5.0.1 app/helpers/hyrax/contact_form_helper.rb
hyrax-5.0.0 app/helpers/hyrax/contact_form_helper.rb
hyrax-5.0.0.rc3 app/helpers/hyrax/contact_form_helper.rb
hyrax-5.0.0.rc2 app/helpers/hyrax/contact_form_helper.rb
hyrax-5.0.0.rc1 app/helpers/hyrax/contact_form_helper.rb
hyrax-3.6.0 app/helpers/hyrax/contact_form_helper.rb
hyrax-4.0.0 app/helpers/hyrax/contact_form_helper.rb
hyrax-4.0.0.rc3 app/helpers/hyrax/contact_form_helper.rb
hyrax-4.0.0.rc2 app/helpers/hyrax/contact_form_helper.rb
hyrax-4.0.0.rc1 app/helpers/hyrax/contact_form_helper.rb
hyrax-3.5.0 app/helpers/hyrax/contact_form_helper.rb
hyrax-4.0.0.beta2 app/helpers/hyrax/contact_form_helper.rb
hyrax-3.4.2 app/helpers/hyrax/contact_form_helper.rb
hyrax-4.0.0.beta1 app/helpers/hyrax/contact_form_helper.rb
hyrax-3.4.1 app/helpers/hyrax/contact_form_helper.rb
hyrax-3.4.0 app/helpers/hyrax/contact_form_helper.rb
hyrax-3.3.0 app/helpers/hyrax/contact_form_helper.rb
hyrax-3.2.0 app/helpers/hyrax/contact_form_helper.rb
hyrax-3.1.0 app/helpers/hyrax/contact_form_helper.rb
hyrax-3.0.2 app/helpers/hyrax/contact_form_helper.rb