Gather admin page for gather #<%= @gather.id %>

Gather Restart

<%= form_for(@gather) do |f| %> <%= f.hidden_field :admin %>

<%= f.label :captain1 %>
<%= f.select :captain1_id, @gather.gatherers.collect{|c| [c, c.id]} %>

<%= f.label :captain2 %>
<%= f.select :captain2_id, @gather.gatherers.collect{|c| [c, c.id]} %>

<%= f.submit 'Restart gather' %>

<% end %>

Turn change

<%= form_for(@gather) do |f| %>

<%= f.label :turn %>
<%= f.select :turn, ['1', '2'] %>

<%= f.submit 'Change turn' %>

<% end %>

Replace players

<% if @gather.gatherers.first %> <%= form_for(@gather.gatherers.first) do |f| %>

Select player:
<%= f.select :id, @gather.gatherers.collect{|g| [g.user, g.id]} %>

Replace with <%= link_to_function 'user', "findUser('username')" %>: <%= f.text_field :username %>

<%= f.submit 'Replace player' %>

<% end %> <% end %>

Start new

<%= form_for(Gather.new) do |f| %> <% f.object.category = @gather.category %> <%= f.hidden_field :category_id %>

<%= f.submit "Start next (#{f.object.category})" %>

<% end %>