=semantic_form_for [:admin, @stock_block], :remote => false do |f|

  .content
    =f.inputs do
      =f.hidden_field :stockable_id
      =f.hidden_field :stockable_type
      =f.hidden_field :movement_type
      =f.hidden_field :accounting
      =f.hidden_field :admin_id
      
      
      
      .stock_lines_form
        =f.semantic_fields_for :stock_lines do |f|
          =render :partial => "admin/stock_lines/form", :locals => {:form => f}

      %p= link_to_add_fields "Ajouter une ligne", f, :stock_lines, {:class => "btn btn-primary", :partial_name => "form"}

      
      
      
      
  .actions=f.submit "sauvegarder", :class => "btn btn-primary"
  