Sha256: 600cba38d64fa62b9ace7c2e9d31e6d0c5570c293f0b34948727f311865ecb58

Contents?: true

Size: 1.01 KB

Versions: 7

Compression:

Stored size: 1.01 KB

Contents

module C80Yax
  module Items
    module Shared
      module BuyOptionsHelper

        def render_buy_options(item)

          elems = [
              {
                  label: 'Нестандартные цвета<br>(+20% к стоимости)',
                  tag: 'super_colors',
                  value: '1',
                  style: 'small'
              },
              {
                  label: 'Цвета с металлическим блеском<br>(+20% к стоимости)',
                  tag: 'metallic',
                  value: '2',
                  style: 'small'
              },
              {
                  label: 'Заказать доставку',
                  value: '3',
                  tag: 'delivery',
                  style: 'huge'
              }
          ]

          render :partial => 'c80_yax/items/buy_options',
                 :locals => {
                     elems: elems,
                     item: item
                 }
        end

      end
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
c80_yax-0.1.0.25 app/helpers/c80_yax/items/shared/buy_options_helper.rb
c80_yax-0.1.0.24 app/helpers/c80_yax/items/shared/buy_options_helper.rb
c80_yax-0.1.0.23 app/helpers/c80_yax/items/shared/buy_options_helper.rb
c80_yax-0.1.0.22 app/helpers/c80_yax/items/shared/buy_options_helper.rb
c80_yax-0.1.0.21 app/helpers/c80_yax/items/shared/buy_options_helper.rb
c80_yax-0.1.0.20 app/helpers/c80_yax/items/shared/buy_options_helper.rb
c80_yax-0.1.0.18 app/helpers/c80_yax/items/shared/buy_options_helper.rb