Fixed User CP cancel button and cleaned user views

This commit is contained in:
2013-01-24 12:57:04 -05:00
parent 0fe499b701
commit f6d82fc596
9 changed files with 82 additions and 61 deletions

View File

@@ -1,18 +1,18 @@
<div class="module" style="padding:15px 25px 0px 25px;">
<div class='module_header'>
<h1>All Users</h1>
<h4>Users Administration</h4>
</div>
<table id="users">
<thead>
<tr>
<th>Username</th>
<th>Email</th>
<th>Login Count</th>
<th>Last Sign In</th>
<th>Admin</th>
<th>Created At</th>
<th>Last Edited</th>
<th><strong>Username</strong></th>
<th><strong>Email</strong</th>
<th><strong>Login Count</strong></th>
<th><strong>Last Sign In</strong></th>
<th><strong>Admin</strong></th>
<th><strong>Created At</strong></th>
<th><strong>Last Edited</strong></th>
<th></th>
<th></th>
</tr>
@@ -27,14 +27,14 @@
<th><%= user.admin? %></th>
<th><%= user.created_at.to_s(:datetime).downcase %></th>
<th><%= user.updated_at.to_s(:datetime).downcase %></th>
<th><%= link_to "Edit", edit_user_path(user) %></th>
<th><%= link_to "Delete", user, :method => :delete, :confirm => "Are you sure?" %></th>
<th><%= button_to "Edit", edit_user_path(user), :class => 'btn', :method => "get" %></th>
<th><%= button_to "Delete", user, :method => :delete, :confirm => "Are you sure?", :class => 'btn btn-danger', :method => "get" %></th>
</tr>
<% end %>
</tbody>
</table>
<div align="center"> <%= paginate(@users)%> </div>
<p><%= link_to "New User", new_user_path %></p>
<p><%= button_to "New User", new_user_path, :class => 'btn btn-primary', :method => "get" %></p>
<div class="clear"></div>
</div>