Sha256: 81404d52f4a871db5fd056ef0f2b7e1e6155e410ff3a3ae466bc82a84234827e
Contents?: true
Size: 714 Bytes
Versions: 2
Compression:
Stored size: 714 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 types = Hyrax::ContactForm.issue_types_for_locale.dup types.unshift([t('hyrax.contact_form.select_type'), nil]) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hyrax-3.0.0.pre.rc3 | app/helpers/hyrax/contact_form_helper.rb |
hyrax-3.0.0.pre.rc2 | app/helpers/hyrax/contact_form_helper.rb |