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
ce812b8f17
commit
95e5f49167
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