2010-03-04 08:33:26 +00:00
|
|
|
<% content_for :secondary do %>
|
2011-02-08 02:07:40 +00:00
|
|
|
<ul class="list">
|
|
|
|
<li><%= link_to t('panel.new_user'), new_panel_user_path, :class => 'button positive' %></li>
|
|
|
|
</ul>
|
2010-03-04 08:33:26 +00:00
|
|
|
<% end -%>
|
|
|
|
|
2011-02-08 02:07:40 +00:00
|
|
|
<%= flash_messages %>
|
|
|
|
|
2011-04-13 10:19:51 +00:00
|
|
|
<h1><%= t('panel.list_users') %></h1>
|
2010-03-04 08:33:26 +00:00
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr>
|
2011-02-01 07:12:23 +00:00
|
|
|
<th><%= t('panel.roles') %></th>
|
2011-04-13 10:19:51 +00:00
|
|
|
<th><%= t('panel.name') %></th>
|
|
|
|
<th><%= t('panel.email') %></th>
|
2011-02-08 06:51:49 +00:00
|
|
|
<th><%= t('panel.admin') %></th>
|
2011-04-13 10:19:51 +00:00
|
|
|
<th><%= t('panel.action') %></th>
|
2010-03-04 08:33:26 +00:00
|
|
|
</tr>
|
|
|
|
|
2011-02-08 02:07:40 +00:00
|
|
|
<% @users.each do |user| %>
|
|
|
|
<tr>
|
|
|
|
<td><%= user.get_roles %></td>
|
|
|
|
<td><%= user[:name] %></td>
|
|
|
|
<td><%= user.email %></td>
|
2011-02-08 06:51:49 +00:00
|
|
|
<td><%= user.admin ? t(:yes_) : t(:no_) %></td>
|
2011-02-08 02:07:40 +00:00
|
|
|
<td>
|
2011-04-13 10:19:51 +00:00
|
|
|
<%= link_to t(:show), panel_user_path(user) %> |
|
|
|
|
<%= link_to t(:edit), edit_panel_user_path(user) %> |
|
2011-02-08 02:07:40 +00:00
|
|
|
<%= link_to t(:delete), panel_user_path(user), :confirm => t('sure?'), :method => :delete %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
2010-03-04 08:33:26 +00:00
|
|
|
</table>
|