2014-04-26 01:50:32 +00:00
|
|
|
<div class="contester">
|
|
|
|
<h1>Editing: <%= h @contester.team.name %></h1>
|
|
|
|
<h3 class="title"><%= h @contester.contest.name %></h3>
|
2014-03-23 00:22:25 +00:00
|
|
|
|
2014-04-26 01:50:32 +00:00
|
|
|
<%= form_for @contester, html: { class: 'square' } do |f| %>
|
|
|
|
<%= render 'shared/errors', messages: @contester.errors.full_messages %>
|
2014-03-23 00:22:25 +00:00
|
|
|
|
2015-05-16 13:54:14 +00:00
|
|
|
<% if @contester.contest.contest_type == Contest::TYPE_LADDER %>
|
|
|
|
<div class="fields horizontal">
|
|
|
|
<%= f.label :rank %>
|
|
|
|
<%= f.text_field :score %>
|
|
|
|
</div>
|
|
|
|
<% else %>
|
2015-05-16 14:14:40 +00:00
|
|
|
<div class="fields horizontal">
|
|
|
|
<%= f.label :extra, "Extra Points" %>
|
|
|
|
<%= f.text_field :extra %>
|
|
|
|
</div>
|
2015-05-16 13:54:14 +00:00
|
|
|
<div class="fields horizontal">
|
|
|
|
<%= f.label :score %>
|
|
|
|
<%= f.text_field :score %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2014-04-26 01:50:32 +00:00
|
|
|
<div class="fields horizontal">
|
|
|
|
<%= f.label :win %>
|
|
|
|
<%= f.text_field :win %>
|
|
|
|
</div>
|
|
|
|
<div class="fields horizontal">
|
|
|
|
<%= f.label :loss %>
|
|
|
|
<%= f.text_field :loss %>
|
|
|
|
</div>
|
|
|
|
<div class="fields horizontal">
|
|
|
|
<%= f.label :draw %>
|
|
|
|
<%= f.text_field :draw %>
|
|
|
|
</div>
|
|
|
|
<div class="controls">
|
2014-03-23 00:22:25 +00:00
|
|
|
<%= f.submit 'Update' %>
|
2014-04-26 01:50:32 +00:00
|
|
|
</div>
|
2014-03-23 00:22:25 +00:00
|
|
|
<% end %>
|
|
|
|
</div>
|