Module: C80Yax::Items::BuyOptionsHelper

Defined in:
app/helpers/c80_yax/items/buy_options_helper.rb

Instance Method Summary collapse

Instance Method Details

#render_buy_optionsObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'app/helpers/c80_yax/items/buy_options_helper.rb', line 5

def render_buy_options

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

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