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