mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-16 21:11:38 +00:00
Views for school and tournament delegates
This commit is contained in:
@@ -24,8 +24,8 @@
|
||||
<tr>
|
||||
<td><%= user.email %></td>
|
||||
<td>
|
||||
<%= form_for user, :url => url_for(:controller => 'tournaments', :action => 'delegate', :method => "patch") do |f| %>
|
||||
<%= f.hidden_field :id, :value => user.id %>
|
||||
<%= form_for TournamentDelegate.new, :url => url_for(:controller => 'tournaments', :action => 'delegate', :method => "post") do |f| %>
|
||||
<%= f.hidden_field :user_id, :value => user.id %>
|
||||
<% if can? :manage, @tournament %>
|
||||
<%= submit_tag "Give permissions", :class=>"btn btn-success"%>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user