.row - @subscriptions.each_with_index do |product,idx| .col-md-2 .thumbnail.item_display =image_tag(product.image.display.url) .caption %h3= "#{product.name} #{number_to_currency(product.price, unit: '£',precision: 0)}" =form_tag(product_order_path(@active_order,product),remote: true,class: 'remote_form') do =hidden_field_tag 'quantity',1 =button_tag 'Add to cart',class: 'btn btn-primary subscription',id: "subscription_#{idx}" .col-md-4.col-md-offset-6 -bs_panel(raw(""),'primary') do #cart{'data-path'=>order_path(@active_order)} -a=0 -%w(maxwell schrodinger einstein).each do |p_type| -if @t_shirts.send(p_type).exists? .row .col-md-12 - @t_shirts.send(p_type).each do |product| .item_display %dt=product.name %dd=image_tag(product.image.display.url) -if product.stock_level == 0 %h6 OUT OF STOCK -else =form_tag(product_order_path(@active_order,product),remote: true,class: 'remote_form') do .field =label_tag 'Quantity' =number_field_tag 'quantity',1,class: 'narrow-fld' =button_tag 'Add to cart',class: 'btn btn-primary t_shirt',id: "t-shirt_#{(a+=1)}"