gave referees a possibility to signup for matches

This commit is contained in:
Absurdon 2017-04-13 19:32:07 +02:00
parent 4508e11270
commit f6ecbb9f4d

View file

@ -122,6 +122,14 @@
<%= link_to "Referee Admin", match_ref_path(@match), class: 'button' %> <%= link_to "Referee Admin", match_ref_path(@match), class: 'button' %>
</div> </div>
<% end %> <% end %>
<% if cuser and @match.referee.nil? and cuser.ref? %>
<div class="referee">
<%= form_for @match do |f| %>
<%= f.hidden_field :referee_id, value: cuser.id %>
<%= f.submit "Signup as referee", class: 'button' %>
<% end %>
</div>
<% end %>
</div> </div>
<%= add_comments @match %> <%= add_comments @match %>