1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-12 08:18:44 +00:00

Added ability to remove permissions

This commit is contained in:
2016-01-08 13:14:29 +00:00
parent 613af2337d
commit fb157887a6
4 changed files with 29 additions and 5 deletions

View File

@@ -50,13 +50,14 @@
<thead>
<tr>
<th>User Email</th>
<th></th>
</tr>
</thead>
<tbody>
<% @users_delegates.each do |delegate| %>
<tr>
<td><%= delegate.user.email %></td>
<td><%= link_to 'Remove permissions', "/tournaments/#{@tournament.id}/#{delegate.id}/remove_delegate", method: :delete, confirm: 'Are you sure?', :class=>"btn btn-danger btn-sm" %></td>
</tr>
<% end %>

View File

@@ -54,6 +54,7 @@
<tr>
<th>User Email</th>
<th>School</th>
<th></th>
</tr>
</thead>
<tbody>
@@ -61,7 +62,7 @@
<tr>
<td><%= delegate.user.email %></td>
<td><%= delegate.school.name %></td>
<td><%= link_to 'Remove permissions', "/tournaments/#{@tournament.id}/#{delegate.id}/remove_school_delegate", method: :delete, confirm: 'Are you sure?', :class=>"btn btn-danger btn-sm" %></td>
</tr>
<% end %>