<%= stylesheet_link_tag "admin" %>
<h1>
<%= _('Edit User Privileges') %>
</h1>
<div class="white_background">
<%= form_tag( admin_update_permissions_user_path(@user), method: :put) do %>
<table id="dmp_table" class="dmp_table tablesorter">
<thead>
<tr>
<% @perms.each do |perm| %>
<th class="dmp_th_medium"> <%= perm.name %> </th>
<% end %>
</tr>
</thead>
<tbody>
<tr>
<% @perms.each do |perm| %>
<td class="dmp_td_medium">
<%= check_box_tag "perm_ids[]", perm.id, @user.perms.include?(perm) %>
</td>
<% end %>
</tr>
</tbody>
</table>
<%= submit_tag _('Save') %>
<% end %>
</div>