diff --git a/app/views/submissions/_judging_status.html.erb b/app/views/submissions/_judging_status.html.erb index c15eeca1..d343290c 100644 --- a/app/views/submissions/_judging_status.html.erb +++ b/app/views/submissions/_judging_status.html.erb @@ -27,8 +27,8 @@ type="checkbox" name="submission[judging_status]" value="winner" - <%= unless @submission.judging_status.in?(["selected", "winner"]) then "disabled" end %> - <%= if @submission.judging_status == "winner" then "checked" end %> + <%= "disabled" unless @submission.judging_status.in?(["selected", "winner"]) %> + <%= "checked" if @submission.judging_status == "winner" %> data-action="change->submission-details#winnerSubmit" />