mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-11-15 01:11:23 +00:00
Fixed caster selection
This commit is contained in:
parent
a4f4f074ae
commit
67f603789f
1 changed files with 1 additions and 1 deletions
2
app/views/matches/admin.html.haml
Normal file → Executable file
2
app/views/matches/admin.html.haml
Normal file → Executable file
|
@ -34,7 +34,7 @@
|
|||
- elsif match.can_update?(cuser, {:caster_id => cuser.id})
|
||||
= form_for match do |f|
|
||||
- if cuser.admin?
|
||||
= f.collection_select :caster_id, Group.casters, :id, :username, {:include_blank => true}, {:class => "autosubmit"}
|
||||
= f.collection_select :caster_id, User.casters, :id, :username, {:include_blank => true}, {:class => "autosubmit"}
|
||||
- else
|
||||
= f.hidden_field :caster_id, {:value => cuser.id}
|
||||
= link_to "Take!", "#form_submit"
|
||||
|
|
Loading…
Reference in a new issue