orbit-basic/app/views/panel/users/index.html.erb

25 lines
551 B
Plaintext
Raw Normal View History

<% content_for :secondary do %>
<ul class="list">
<li><%= link_to t(:new_user, :scope => :panel), new_panel_user_path, :class => 'button positive' %></li>
</ul>
<% end -%>
<h1>Users panel</h1>
<table>
<tr>
<th>Name</th>
<th>Email</th>
<th>Action</th>
</tr>
<% @users.each do |user| %>
<tr>
<td><%#= user.name %></td>
<td><%= user.email %></td>
<td><%= link_to 'Edit', edit_panel_user_path(user) %> | <%= link_to 'Destroy', panel_user_path(user), :method => :delete %></td>
</tr>
<% end %>
</table>