%tr#admin_row{:id => admin.id}
  %td
    
    %strong
      =admin.firstname
      =admin.name
    %br
    =admin.username
    %br
    =admin.email
  
  %td
    =admin.p_commercial.long_name if admin.p_commercial
  
  %td
    -admin.admin_roles.uniq.each do |ar|
      =ar.name
      %br
      
  %td
    -admin.admin_permissions.uniq.each do |ap|
      =ap.name
      %br


  %td.actions
    = link_to i(:"trash-o"), [:admin, admin], :confirm => 'Voulez-vous vraiment supprimer cet admin ?', :method => :delete, :remote => true
    
    = link_to i(:pencil), edit_admin_admin_path(admin), :remote => true
    
    = link_to i(:eye), admin_admin_path(admin)
    
    
    
  