Sha256: cff0a729d091a03f5d6e13f8e33d40bd7b35974dd6ccd22ab10a58ed9b003c56
Contents?: true
Size: 1011 Bytes
Versions: 2
Compression:
Stored size: 1011 Bytes
Contents
module C80RefinePrice module Inner module FormsHelper def _render_full_contact_form(params={}) # params: { # "item_id"=>"67", # "item_title"=>"Газобетонный стеновой блок YTONG, D400, 625*250*375мм", # "item_url"=>"/stroitelnye-materialy/gazobetonnye-bloki/67", # "controller"=>"c80_refine_price/application", # "action"=>"refine_price_popup" # } settings = { :item_id => '', :item_title => '', :item_url => '' } se = settings.merge(params.deep_symbolize_keys) se[:comment_value] = "Товар: #{se[:item_title]}. [br] Ссылка: #{se[:item_url]}" render :partial => 'c80_refine_price/shared/inner/forms/full_contact_form', :locals => { rpmessage: Rpmessage.new, settings: se } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
c80_refine_price-0.1.0.1 | app/helpers/c80_refine_price/inner/forms_helper.rb |
c80_refine_price-0.1.0 | app/helpers/c80_refine_price/inner/forms_helper.rb |