=semantic_form_for [:admin, @stock_movement], :remote => true do |f|

  .content
    =f.inputs do
      = f.input :movement_type, :label => "movement_type :", :as => :hidden
      = f.input :description, :label => "Description :", :as => :string

      = f.input :date, :label => "Date :", :as => :date 

            
      
      .stock_movement_lines_form
        =f.semantic_fields_for :stock_movement_lines do |f|
          =render :partial => "admin/stock_movement_lines/form", :locals => {:form => f}
  
      %p= link_to_add_fields "Ajouter une ligne", f, :stock_movement_lines, {:class => "btn btn-primary", :partial =>(@stock_movement.movement_type == "cred" ? "admin/stock_movement_lines/form_cred" : "admin/stock_movement_lines/form")}
  
  
      
      
      
      
      
  .actions=f.submit "sauvegarder", :class => "btn btn-primary"
  