mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-27 11:40:57 +00:00
gave referees a possibility to signup for matches
This commit is contained in:
parent
5ac3766a63
commit
5cc9dc411f
1 changed files with 8 additions and 0 deletions
|
@ -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 %>
|
||||||
|
|
Loading…
Reference in a new issue