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:
@@ -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 %>
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user