Module: ContactFormHelper

Defined in:
app/helpers/contact_form_helper.rb

Instance Method Summary collapse

Instance Method Details

#decision_maker_select_optionsObject



12
13
14
15
16
17
18
19
20
21
22
# File 'app/helpers/contact_form_helper.rb', line 12

def decision_maker_select_options
  [
    :flooring_contractor,
    :electrical_contractor,
    :general_contractor,
    :architect_builder,
    :designer,
    :homeowner,
    :other
  ].map{|dm| [dm.to_s.titleize, dm.to_s]}
end

#purchasing_frequency_select_optionsObject



2
3
4
5
6
7
8
9
10
# File 'app/helpers/contact_form_helper.rb', line 2

def purchasing_frequency_select_options
  {
    "Never" => 'Never',
    "1-2 per month" => '1-2-month',
    "3-5 per month" => '3-5-month',
    "6-10 per month" => '6-10-month',
    "10-month" => '10+ per month'
  }
end

#source_list_simple_select_optionsObject



24
25
26
27
28
29
30
31
32
33
34
# File 'app/helpers/contact_form_helper.rb', line 24

def source_list_simple_select_options
  [
    :referal_from_a_contractor,
    :referal_from_a_homeowner,
    :magazine_or_press,
    :internet_search,
    :internet_social,
    :internet_other_website,
    :other
  ].map{|dm| [dm.to_s.titleize, dm.to_s]}
end