mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-26 12:30:48 +00:00
gave referees a possibility to signup for matches
This commit is contained in:
parent
4508e11270
commit
f6ecbb9f4d
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