Module: C80RefinePrice::AppHelper

Defined in:
app/helpers/c80_refine_price/app_helper.rb

Instance Method Summary collapse

Instance Method Details

#render_popup_okObject

отрисовка success-сообщения, завёрнутого в bootstrap modal окно



14
15
16
17
18
19
20
21
22
# File 'app/helpers/c80_refine_price/app_helper.rb', line 14

def render_popup_ok

  render :partial => 'c80_refine_price/shared/popup',
         :locals => {
             title: I18n.t('c80_refine_price.popup_ok.title'),
             content: I18n.t('c80_refine_price.popup_ok.content')
         }

end

#render_popup_refine_price(params) ⇒ Object

отрисовка формы ‘Уточнить цену’, завёрнутой в bootstrap modal окно



5
6
7
8
9
10
11
# File 'app/helpers/c80_refine_price/app_helper.rb', line 5

def render_popup_refine_price(params)
  render :partial => 'c80_refine_price/shared/popup',
         :locals => {
             title: I18n.t('c80_refine_price.popup_refine_price.title'),
             content: _render_full_contact_form(params)
         }
end