1
0
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:
2016-01-07 20:18:36 +00:00
parent dd9e19b43f
commit bd5768b037
4 changed files with 103 additions and 11 deletions

View File

@@ -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 %>