<%= f.label :name %>
<%= f.text_field :name %>
<%= f.label :short_name %>
<%= f.text_field :short_name %>
<%= f.label :start %>
<%= f.datetime_select :start %>
<%= f.label :end %>
<%= f.datetime_select :end %>
<%= f.label :status %>
<%= f.select :status, @contest.statuses.invert %>
<%= f.label :demos_id %>
<%= f.select :demos_id, Directory.all.collect{|d| [d, d.id]} %>
<%= f.label :default_time %>
<%= f.time_select :default_time %>
<%= f.label :winner_id %>
<%= f.select :winner_id, @contest.contesters.collect{|t| [t.team, t.id]}, :include_blank => true %>
<%= f.label :rules_id %>
<%= f.select :rules_id, Category.find(Category::RULES).articles.collect{|a| [a, a.id]}, :include_blank => true %>
<%= f.label :weight %>
<%= f.text_field :weight %>
<%= f.label :modulus_base %>
<%= f.text_field :modulus_base %>
<%= f.label :modulus_even %>
<%= f.text_field :modulus_even %>
<%= f.label :modulus_3to1 %>
<%= f.text_field :modulus_3to1 %>
<%= f.label :modulus_4to0 %>
<%= f.text_field :modulus_4to0 %>
<%= f.submit 'Save' %>
<% end %>Bracket | Slots | Options |
---|---|---|
<%= namelink bracket %> | <%= bracket.slots %> | <%= link_to 'Edit', edit_bracket_path(bracket) %> <%= link_to 'Destroy', bracket, :confirm => 'Are you sure?', :method => :delete %> |
<%= f.label :slots %> <%= f.text_field :slots %> <%= f.submit 'Add Bracket' %>
<% end %>Name | Download | Options |
---|---|---|
<%= namelink map %> | <%= h map.download %> | <%= link_to 'Edit', edit_map_path(map) %> <%= link_to 'Remove', :action => "del_map", :id => @contest.id, :id2 => map.id %> |
<%= select_tag :map, options_from_collection_for_select(Map.basic, :id, :name) %> <%= f.submit 'Add map' %>
<% end %>Team | Score | Status | Actions |
---|---|---|---|
<%= link_to (h contester.team), contester %> | <%= h contester.score %> | <%= contester.statuses[contester.active] %> | <% if contester.active %> <%= link_to 'Edit', edit_contester_path(contester) %> <%= link_to 'Delete', contester, :confirm => 'Are you sure?', :method => :delete %> <% else %> <%= form_for contester do |c| %> <%= c.hidden_field :active, {:value => 1} %> <%= link_to 'Edit', edit_contester_path(contester) %> <%= link_to_function 'Recover', "$('edit_contester_#{contester.id}').submit()" %> <% end %> <% end %> |
<%= f.select :team_id, Team.active.ordered.collect{|t| [t, t.id]} %> <%= f.submit 'Add team' %>
<% end %>Name | Start date | Map1 | Map2 | Options |
---|---|---|---|---|
<%= h week.name %> | <%= week.start_date.strftime("%d %B %y") %> | <%= h week.map1 %> | <%= h week.map2 %> | <%= link_to 'Edit', edit_week_path(week) %> <%= link_to 'Destroy', week, :confirm => 'Are you sure?', :method => :delete %> |
Teams | Date | Score | Options |
---|---|---|---|
<%= namelink match.contester1.team %> vs <%= namelink match.contester2.team %> | <%= longtime match.match_time %> | <% link_to match do %> <%= h match.score1 %> - <%= h match.score2 %> <% end %> | <%= link_to 'Referee', :controller => :matches, :action => :ref, :id => match %> <%= link_to 'Edit', edit_match_path(match) %> <%= link_to 'Delete', match, :confirm => 'Are you sure?', :method => :delete %> |