mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
Show extra points on edit contesters not for ladder.
This commit is contained in:
parent
5e29684722
commit
f5d737f97d
1 changed files with 4 additions and 4 deletions
|
@ -5,16 +5,16 @@
|
|||
<%= form_for @contester, html: { class: 'square' } do |f| %>
|
||||
<%= render 'shared/errors', messages: @contester.errors.full_messages %>
|
||||
|
||||
<div class="fields horizontal">
|
||||
<%= f.label :extra, "Extra Points" %>
|
||||
<%= f.text_field :extra %>
|
||||
</div>
|
||||
<% if @contester.contest.contest_type == Contest::TYPE_LADDER %>
|
||||
<div class="fields horizontal">
|
||||
<%= f.label :rank %>
|
||||
<%= f.text_field :score %>
|
||||
</div>
|
||||
<% else %>
|
||||
<div class="fields horizontal">
|
||||
<%= f.label :extra, "Extra Points" %>
|
||||
<%= f.text_field :extra %>
|
||||
</div>
|
||||
<div class="fields horizontal">
|
||||
<%= f.label :score %>
|
||||
<%= f.text_field :score %>
|
||||
|
|
Loading…
Reference in a new issue