%tr#s_project_row{:id => s_project.id}
  -tr = {}
    
  
  -tr[:parent_id] = capture do
    %td
      =link_to s_project.parent.p_number, [:admin, s_project.parent] if s_project.parent
      
  
  -tr[:p_number] = capture do
    %td
      =link_to s_project.p_number, [:admin, s_project] 
      
  
  
  
  -tr[:p_customer] = capture do
    %td
      =link_to s_project.p_customer.show_name, [:admin, s_project.p_customer] if s_project.p_customer
      
  
  -tr[:nav_project_status] = capture do
    
    %td
      =s_project.state_to_text[s_project.nav_project_status.to_i]
      
  
  -tr[:actions] = capture do
    %td.actions
      = link_to i(:"trash-o"), [:admin, s_project], method: :delete, data: { confirm: 'Voulez-vous vraiment supprimer cet enregistrement ? ' } , :remote => true
      = link_to i(:pencil), edit_admin_s_project_path(s_project) #, :remote => true
      = link_to i(:eye), admin_s_project_path(s_project) #, :remote => true

  =render :partial => "qi/qi_ordered_table_object", :locals => {:tr => tr, :object => s_project}
    
  
