Sha256: 9dbbc21185c85316c5477b926b53acd477b35ee4c453f97ccaaaa7da6d6a244d

Contents?: true

Size: 671 Bytes

Versions: 9

Compression:

Stored size: 671 Bytes

Contents

module C80OrderForm
  module SiteHelper

    def render_order_form(predefined_comment="",subj_id=-1)

      @settings = Settings.first

      render :partial => "c80_order_form/site/shared/order_form",
             :locals => {
                 :mess => "MessageOrder.new",
                 :predefined_comment => predefined_comment,
                 :subj_id => subj_id
             }

    end

    def render_ok_message
      settings = Settings.first
      render :partial => "c80_order_form/site/shared/ok_message",
             :locals => {
                 ok_text: settings.ok_text,
                 wtitle: settings.ok_text_title
             }
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
c80_order_form-0.1.0.11 app/helpers/c80_order_form/site_helper.rb
c80_order_form-0.1.0.10 app/helpers/c80_order_form/site_helper.rb
c80_order_form-0.1.0.9 app/helpers/c80_order_form/site_helper.rb
c80_order_form-0.1.0.8 app/helpers/c80_order_form/site_helper.rb
c80_order_form-0.1.0.7 app/helpers/c80_order_form/site_helper.rb
c80_order_form-0.1.0.6 app/helpers/c80_order_form/site_helper.rb
c80_order_form-0.1.0.5 app/helpers/c80_order_form/site_helper.rb
c80_order_form-0.1.0.4 app/helpers/c80_order_form/site_helper.rb
c80_order_form-0.1.0.3 app/helpers/c80_order_form/site_helper.rb