mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-10 07:48:29 +00:00
Added logic to delegate tournament access
This commit is contained in:
@@ -30,10 +30,6 @@
|
||||
<%= f.collection_select :weight_id, @weights, :id, :max %>
|
||||
|
||||
</div>
|
||||
<div class="field">
|
||||
<%= f.label :original_seed %><br>
|
||||
<%= f.number_field :original_seed %>
|
||||
</div>
|
||||
<div class="field">
|
||||
<%= f.label "Season Wins" %><br>
|
||||
<%= f.number_field :season_win %>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<%= link_to "Back to #{@school.name}", "/schools/#{@school.id}", :class=>"btn btn-default" %>
|
||||
<% if tournament_permissions(@wrestler.tournament) %>
|
||||
<% if can? :manage, @tournament %>
|
||||
| <%= link_to "Edit #{@wrestler.name}", edit_wrestler_path(@wrestler), :class=>"btn btn-primary" %>
|
||||
<% end %>
|
||||
<% cache ["wrestlers", @wrestler] do %>
|
||||
|
||||
Reference in New Issue
Block a user