2012-02-11 18:56:18 +01:00
|
|
|
%h3
|
|
|
|
Users
|
|
|
|
= link_to 'New User', new_admin_user_path, :class => "btn small right"
|
|
|
|
%hr
|
|
|
|
%table.zebra-striped
|
2011-11-02 16:21:17 +01:00
|
|
|
%thead
|
2011-10-08 23:36:38 +02:00
|
|
|
%th Admin
|
|
|
|
%th Name
|
|
|
|
%th Email
|
|
|
|
%th Projects
|
|
|
|
%th
|
|
|
|
%th
|
|
|
|
|
|
|
|
- @admin_users.each do |user|
|
|
|
|
%tr
|
|
|
|
%td= check_box_tag "admin", 1, user.admin, :disabled => :disabled
|
2011-10-14 23:12:02 +02:00
|
|
|
%td= link_to user.name, [:admin, user]
|
2011-10-08 23:36:38 +02:00
|
|
|
%td= user.email
|
|
|
|
%td= user.users_projects.count
|
2012-02-11 18:56:18 +01:00
|
|
|
%td= link_to 'Edit', edit_admin_user_path(user), :id => "edit_#{dom_id(user)}", :class => "btn small"
|
|
|
|
%td= link_to 'Destroy', [:admin, user], :confirm => 'Are you sure?', :method => :delete, :class => "btn small danger"
|
2011-10-08 23:36:38 +02:00
|
|
|
|
|
|
|
= paginate @admin_users
|