.p_sheet_lines_form

  -@price_line = @price_line || PriceLine.new(:p_product_ref => @p_product_ref, :qte => 1)


  -if @p_product.p_product_refs.count == 1 and !@p_product.name?
    =@p_product.name
  -else
    .p_product_refs_links
      -@p_product.p_product_refs.where(:stocked=> true).each do |ppr|
        / -if true #![61,55,50,58].include?(ppr.id)
        /   -if ppr.customizable
        /     =link_to (ppr.ct_sub_name? ? ppr.ct_sub_name : ppr.id), "#", :onclick => "$('#p_product_ref_id').val($(this).data('id'));$('#config_p_product_ref_id').val($(this).data('id'));$('#config_nbr').val($(this).data('nbr-customizable'));$('.choc_max_number').html($(this).data('nbr-customizable'));$('#show_price').html($(this).data('price'));$('.p_product_refs_links a').removeClass('active');$(this).addClass('active');$('.add_cart_field').hide();$('#configurateur_wrapper').show();$('html,body').animate({scrollTop: ($('#configurateur').offset().top - 50)},'slow');resize();return false;", :data => {:id => ppr.id, :nbr_customizable => ppr.nbr_customizable, :price => number_to_currency(ppr.get_ttc(@current_p_customer_sheet.accounting_zone_id, @current_devise.id), :unit => @current_devise.symbol )}, :class => ("active" if @price_line.p_product_ref_id == ppr.id)

        /   -else
        /     / =link_to (ppr.ct_sub_name? ? ppr.ct_sub_name : ppr.id), "#", :onclick => "$('.more_images a').hide();$('.more_images .ref-all, .more_images .ref-#{ppr.id}').show();$('#p_product_ref_id').val($(this).data('id'));$('#product_img').attr('src', $('.more_images .ref-all, .more_images .ref-#{ppr.id}').first().data('image'));$('#show_price').html($(this).data('price'));$('.p_product_refs_links a').removeClass('active');$(this).addClass('active');$('.add_cart_field').show();$('#configurateur_wrapper').hide();return false;", :data => {:id => ppr.id, :price => number_to_currency(ppr.get_ttc(@current_p_customer_sheet.accounting_zone_id, @current_devise.id), :unit => @current_devise.symbol )}, :class => ("active" if @price_line.p_product_ref_id == ppr.id)





  .add_cart_field
    =semantic_form_for [:public, @price_line], :remote => true, :html => {  :id => "cart_form"} do |form|

      #p_sheet_line.product_stock_form.field.p_sheet_line_field{:id => form.object.id}


        = form.hidden_field :p_product_ref_id, :id => "p_product_ref_id"

        :javascript
          $('.more_images a').hide();$('.more_images .ref-all, .more_images .ref-#{form.object.p_product_ref_id}').show();
          $('#product_img').attr('src', $('.more_images .ref-all, .more_images .ref-#{form.object.p_product_ref_id}').first().data('image'));

        %table
          %tr
            %td
              Nbr. d'unités :
            %td{:style => "width:150px;"}
              .qte_wrapper
                = form.text_field :qte, :class => "qte form-control", :style => "display:inline-block;width:100px;"
                =link_to "+", "#", :class => "qte_more", :onclick => ""
                =link_to "-", "#", :class => "qte_less"


            %td
              =link_to ic(:"cart-plus")+" "+qit('add-to-basket', 'Ajouter au panier'), "#", :onclick => "$(this).closest('form').submit();", :class => "btn btn-primary"



