= semantic_form_for [:admin,@product], :remote => true do |form| 

  .content
    %table.table
      %tr
        %td Option
        %td Taille
        %td Stock théorique
        %td Stock réél
        %td Prix
        
      =form.semantic_fields_for :product_stocks do |product_stock| 
          
        = product_stock.inputs do
          %tr
            %td
              = product_stock.object.product_option.lang(I18n.locale).name if product_stock.object.product_option
            %td
              = product_stock.object.product_size.name if product_stock.object.product_size
            
            
            %td=product_stock.text_field :stock_th
            %td=product_stock.text_field :stock
            %td
              
              
              %p= link_to_add_fields "Ajouter une ligne", product_stock, :product_degressifs 

              .product_degressifs_form
                =product_stock.semantic_fields_for :product_degressifs do |form|
                  =render :partial => "admin/product_degressifs/form", :locals => {:form => form}
            
  .actions
    = form.submit "Sauvegarder", :class => "btn btn-primary"
  