From c3ac6a60ca00776887ea3409f760fb8b96bf06fe Mon Sep 17 00:00:00 2001 From: simplefl Date: Sat, 16 May 2015 16:14:40 +0200 Subject: [PATCH] Show extra points on edit contesters not for ladder. --- app/views/contesters/edit.html.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/contesters/edit.html.erb b/app/views/contesters/edit.html.erb index f6e01ea..1478c70 100644 --- a/app/views/contesters/edit.html.erb +++ b/app/views/contesters/edit.html.erb @@ -5,16 +5,16 @@ <%= form_for @contester, html: { class: 'square' } do |f| %> <%= render 'shared/errors', messages: @contester.errors.full_messages %> -
- <%= f.label :extra, "Extra Points" %> - <%= f.text_field :extra %> -
<% if @contester.contest.contest_type == Contest::TYPE_LADDER %>
<%= f.label :rank %> <%= f.text_field :score %>
<% else %> +
+ <%= f.label :extra, "Extra Points" %> + <%= f.text_field :extra %> +
<%= f.label :score %> <%= f.text_field :score %>