Orbit/app/views/admin/users/index.html.erb

43 lines
1.3 KiB
Plaintext
Raw Normal View History

2011-12-10 10:03:32 +00:00
<% content_for :secondary do %>
<%= render 'side_bar' %>
<% end %>
<div class="main_list clear">
2011-12-10 10:03:32 +00:00
<%= flash_messages %>
<div class="button_bar up">
2012-09-12 11:12:50 +00:00
<%= link_to t('new.user'), new_admin_user_path, :class => 'new' %>
2011-12-10 10:03:32 +00:00
</div>
<table>
<thead>
<tr>
2012-09-12 11:12:50 +00:00
<td class="roles"><%= t(:role) %></td>
<td class="name"><%= t(:name) %></td>
<td class="email"><%= t(:email) %></td>
<td class="admin"><%= t(:admin) %></td>
<td class="action"><%= t(':action') %></td>
2011-12-10 10:03:32 +00:00
</tr>
</thead>
<tbody>
<% @users.each do |user| %>
<tr class="have">
2012-07-25 21:58:09 +00:00
<td class="roles <%= user.role.key.downcase rescue nil %>"><%= user.role.title rescue nil %></td>
2011-12-10 10:03:32 +00:00
<td class="name"><%= user.name ? user.name : 'bob' %></td>
<td class="email"><%= user.email %></td>
<td class="admin"><%= user.admin ? t(:yes_) : t(:no_) %></td>
<td class="action">
<%= link_to t(:show), admin_user_path(user), :class => 'show' %>
<%= link_to t(:edit), edit_admin_user_path(user), :class => 'edit' %>
<%= link_to t(:delete), admin_user_path(user), :class => 'delete', :confirm => t('sure?'), :method => :delete %>
</td>
</tr>
<tr>
<td colspan="5"></td>
</tr>
<% end %>
</tbody>
</table>
<div class="button_bar">
2012-09-12 11:12:50 +00:00
<%= link_to t('new.user'), new_admin_user_path, :class => 'new' %>
2011-12-10 10:03:32 +00:00
</div>
</div>